Skip to content

Reference

OpcClient.ReadNodeValues Method

Reads the Value attributes of the nodes specified.

Reference

OpcClient.ReadNodeValues Method ​

Type
OpcClient
Namespace
Opc.UaFx.Client
Assembly
Opc.UaFx.Advanced.dll
Package
Opc.UaFx.Advanced v2.59.0
Members
OpcClient Members
Also in
Opc.UaFx.Client

2 overloads · since v2.8

OverloadDescription
ReadNodeValues(IEnumerable<IOpcNodeValue>)since v2.8Reads the Value attributes of the nodes specified.
ReadNodeValues(params IOpcNodeValue[])since v2.8Reads the Value attributes of the nodes specified.

Known results: BadNodeIdInvalid, BadNodeIdUnknown, BadAttributeInvalid, BadIndexRangeInvalid, BadIndexRangeNoData, BadDataEncodingInvalid, BadDataEncodingUnsupported, BadNotReadable, BadUserAccessDenied

Exceptions (all overloads)

ExceptionCondition
InvalidOperationExceptionThe read service is currently not supported, especially using the nodes specified.
ObjectDisposedExceptionThe object has been disposed of.
OpcExceptionThe service execution failed upon different circumstances; for more details see exception details. The following issues can lead to that exception: BadNothingToDo, BadTooManyOperations, BadMaxAgeInvalid and BadTimestampsToReturnInvalid.

ReadNodeValues(IEnumerable<IOpcNodeValue>) ​

since v2.8

Reads the Value attributes of the nodes specified.

csharp
public IEnumerable<OpcValue> ReadNodeValues(IEnumerable<IOpcNodeValue> nodes)
vbnet
Public Function ReadNodeValues(
    nodes As IEnumerable(Of IOpcNodeValue)) As IEnumerable(Of OpcValue)

Parameters

NameTypeDescription
nodesIEnumerable<IOpcNodeValue>A sequence of IOpcNodeValue instances which representing the nodes its Value is to be read.

Returns

IEnumerable<OpcValue>

A sequence of OpcValue instances its number and order of items matches the number and order of items in the nodes sequence. There is for each entry in nodes one entry which stores the Value of the node described by the entry in nodes specified.

Exceptions

ExceptionCondition
ArgumentNullExceptionThe nodes sequence or one of its items is a null reference (Nothing in Visual Basic).

ReadNodeValues(params IOpcNodeValue[]) ​

since v2.8

Reads the Value attributes of the nodes specified.

csharp
public IEnumerable<OpcValue> ReadNodeValues(params IOpcNodeValue[] nodes)
vbnet
Public Function ReadNodeValues(
    ParamArray nodes As IOpcNodeValue()) As IEnumerable(Of OpcValue)

Parameters

NameTypeDescription
nodesparams IOpcNodeValue[]An array of IOpcNodeValue instances which representing the nodes its Value is to be read.

Returns

IEnumerable<OpcValue>

Exceptions

ExceptionCondition
ArgumentNullExceptionThe nodes array or one of its items is a null reference (Nothing in Visual Basic).