PicoOPC User's Guide and Reference
Read Method



OpcLabs.PicoOpc Assembly > OpcLabs.PicoOpc.UA Namespace > Client Class : Read Method
Maximum age of the values to be read.
Array of nodes and their attributes to read.
Reads one or more attributes of one or mode nodes.
Syntax
'Declaration
 
Public Function Read( _
   ByVal maximumAge As TimeSpan, _
   ByVal nodeToReadArray() As ReadValueId _
) As DataValue()
'Usage
 
Dim instance As Client
Dim maximumAge As TimeSpan
Dim nodeToReadArray() As ReadValueId
Dim value() As DataValue
 
value = instance.Read(maximumAge, nodeToReadArray)

Parameters

maximumAge
Maximum age of the values to be read.
nodeToReadArray
Array of nodes and their attributes to read.

Return Value

Returns an array of attribute data values.
Exceptions
ExceptionDescription
Represents one or more errors that occur during application execution.
Usage error.
Remarks

Use 0 in maximumAge to read a new value from the data source. Use System.Threading.Timeout.InfiniteTimeSpan to get a cached value.

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