QuickOPC User's Guide and Reference
ReadMultipleNodeIds Method



OpcLabs.EasyOpcUA Assembly > OpcLabs.EasyOpc.UA.Extensions Namespace > IEasyUAClientExtension2 Class : ReadMultipleNodeIds Method
The client object that will perform the operation.
Array of OpcLabs.EasyOpc.UA.OperationModel.UANodeArguments. Array of argument objects specifying what to read from an OPC-UA server.
Reads value of NodeId attribute of multiple nodes, using array of argument objects as an input.
Syntax
'Declaration
 
<ExtensionAttribute()>
<ElementsNotNullAttribute()>
<NotNullAttribute()>
Public Shared Function ReadMultipleNodeIds( _
   ByVal client As IEasyUAClient, _
   ByVal nodeArgumentsArray() As UANodeArguments _
) As ValueResult(Of UANodeId)()
'Usage
 
Dim client As IEasyUAClient
Dim nodeArgumentsArray() As UANodeArguments
Dim value() As ValueResult(Of UANodeId)
 
value = IEasyUAClientExtension2.ReadMultipleNodeIds(client, nodeArgumentsArray)
[Extension()]
[ElementsNotNull()]
[NotNull()]
public static ValueResult<UANodeId>[] ReadMultipleNodeIds( 
   IEasyUAClient client,
   UANodeArguments[] nodeArgumentsArray
)
[Extension()]
[ElementsNotNull()]
[NotNull()]
public:
static array<ValueResult<UANodeId^>^>^ ReadMultipleNodeIds( 
   IEasyUAClient^ client,
   array<UANodeArguments^>^ nodeArgumentsArray
) 

Parameters

client
The client object that will perform the operation.
nodeArgumentsArray
Array of OpcLabs.EasyOpc.UA.OperationModel.UANodeArguments. Array of argument objects specifying what to read from an OPC-UA server.

Return Value

Array of OpcLabs.BaseLib.OperationModel.Generic.ValueResult<T>. Returns an array of value objects. Each object contains the actual value of an attribute. The indices of elements in the output array are the same as those in the input array, nodeArgumentsArray.
Exceptions
ExceptionDescription

A null reference (Nothing in Visual Basic) is passed to a method that does not accept it as a valid argument.

This is a usage error, i.e. it will never occur (the exception will not be thrown) in a correctly written program. Your code should not catch this exception.

Remarks

This method also checks whether the returned value is not a reference, and is indeed of the OpcLabs.EasyOpc.UA.AddressSpace.UANodeId type. The returned value is therefore always a valid OpcLabs.EasyOpc.UA.AddressSpace.UANodeId.

 

This is a multiple-operation method. In a properly written program, it does not throw any exceptions. You should therefore not put try/catch statements or similar constructs around calls to this method. The only exceptions thrown by this method are for usage errors, i.e. when your code violates the usage contract of the method, such as passing in invalid arguments or calling the method when the state of the object does not allow it. Any operation-related errors (i.e. errors that depend on external conditions that your code cannot reliably check) are indicated in the result objects returned by the method. For more information, see Multiple-operation Methods and Do not catch any exceptions with asynchronous or multiple-operation methods.
Requirements

Target Platforms: .NET Framework: Windows 10 (selected versions), Windows 11 (selected versions), Windows Server 2016, Windows Server 2022; .NET: Linux, macOS, Microsoft Windows

See Also