For nodes with an in-memory NodeState object the method WriteNodes is called to write the values to the underlying system(device). For nodes with success error code form WriteNodes() the NodeState object is updated, if requested.
Instead of implementing the WriteNodes() method the user can define a NodeState.OnWriteValue event handler for each node. The WriteNodes() 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.
Visual Basic (Declaration) | |
---|---|
Public Overrides Sub Write( _ ByVal context As OperationContext, _ ByVal nodesToWrite As IList(Of WriteValue), _ ByVal errors As IList(Of ServiceResult) _ ) |
C# | |
---|---|
public override void Write( OperationContext context, IList<WriteValue> nodesToWrite, IList<ServiceResult> errors ) |
Parameters
- context
- The operation context for the call.
- nodesToWrite
- The client requested nodes/attributes
- errors
- The status of the request handling.
Target Platforms: Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows 7, Windows Server 2008 family