uaPLUS Reference
WriteNodes Method
See Also  Send Feedback
Advosol.uaPLUS Namespace > BaseNodeManager Class : WriteNodes Method

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

Glossary Item Box

Writes the value for the specified nodes/attributes to the device (underlying system).
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.

Syntax

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) _
) 

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

Requirements

Target Platforms: Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows 7, Windows Server 2008 family

See Also

© 2010-2018 Copyright Advosol Inc. All Rights Reserved.