This method is called from the BaseNodeManger.Write() method for nodes with an in-memory NodeState object. For nodes with success error code and update request the calling method updates the NodeState object (cache).
Instead of implementing this method the user can define a NodeState.OnWriteValue event handler for each node. This method has the advantage that all nodes in the client write request can be written to the device together.
For nodes without an in-memory NodeState object the method WriteVirtualNodes() is called instead of this method.
Visual Basic (Declaration) | |
---|---|
Protected Overridable Sub WriteNodes( _ ByVal context As ServerSystemContext, _ ByVal nodesToWrite As IList(Of WriteValue), _ ByVal nodeHandles As IList(Of NodeHandle), _ ByVal errors As IList(Of ServiceResult), _ ByVal updateCache As IList(Of Boolean) _ ) |
C# | |
---|---|
protected virtual void WriteNodes( ServerSystemContext context, IList<WriteValue> nodesToWrite, IList<NodeHandle> nodeHandles, IList<ServiceResult> errors, IList<bool> updateCache ) |
Parameters
- context
- The system context for the call.
- nodesToWrite
- The client requested nodes/attributes
- nodeHandles
- The NodeHandles of the requested nodes returned from GetNodeHandle()
- errors
- The status of the request handling.
- updateCache
- If TRUE the node cache is updated with the new values
Target Platforms: Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows 7, Windows Server 2008 family