PicoOPC User's Guide and Reference
WriteAsync Method



OpcLabs.PicoOpc Assembly > OpcLabs.PicoOpc.UA Namespace > Client Class : WriteAsync Method
Array of nodes and their attributes and values to write.
Asynchronously writes values to one or more attributes of one or more nodes.
Syntax
'Declaration
 
<AsyncStateMachineAttribute(OpcLabs.PicoOpc.UA.Client+d__3)> 
Public Function WriteAsync( _ 
   ByVal writeValueArray() As WriteValue _ 
) As Task(Of UInteger())
'Usage
 
Dim instance As Client
Dim writeValueArray() As WriteValue
Dim value As Task(Of UInteger())
 
value = instance.WriteAsync(writeValueArray)
[AsyncStateMachine(OpcLabs.PicoOpc.UA.Client+d__3)] 
public Task<uint[]> WriteAsync( 
   WriteValue[] writeValueArray 
)
[AsyncStateMachine(OpcLabs.PicoOpc.UA.Client+d__3)] 
public: 
Task<array<uint>>^ WriteAsync( 
   array<WriteValue>^ writeValueArray 
) 

Parameters

writeValueArray
Array of nodes and their attributes and values to write.

Return Value

Returns an array of status codes for the nodes to write.
Exceptions
ExceptionDescription
Serves as the base class for application-defined exceptions.
Usage error.
Usage error.
The exception that is thrown when an I/O error occurs.
 
Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

Client Class
Client Members