Skip to content

Reference

OpcClient.ReadNodes Method

Reads the Value attribute of the nodes specified by nodeIds.

Reference

OpcClient.ReadNodes 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

10 overloads

OverloadDescription
ReadNodes(IEnumerable<OpcNodeId>)Reads the Value attribute of the nodes specified by nodeIds.
ReadNodes(params OpcNodeId[])Reads the Value attribute of the nodes specified by nodeIds.
ReadNodes(OpcAttribute, IEnumerable<OpcNodeId>)Reads the attribute of the nodes specified by nodeIds.
ReadNodes(OpcAttribute, params OpcNodeId[])Reads the attribute of the nodes specified by nodeIds.
ReadNodes(OpcRange, IEnumerable<OpcNodeId>)since v2.24Reads the range from the Value attribute of the nodes specified by nodeIds.
ReadNodes(OpcRange, params OpcNodeId[])since v2.24Reads the range from the Value attribute of the nodes specified by nodeIds.
ReadNodes(OpcAttribute, OpcRange, IEnumerable<OpcNodeId>)since v2.24Reads the range from the attribute of the nodes specified by nodeIds.
ReadNodes(OpcAttribute, OpcRange, params OpcNodeId[])since v2.24Reads the range from the attribute of the nodes specified by nodeIds.
ReadNodes(IEnumerable<OpcReadNode>)Reads one or more values of one or more attributes of one or more nodes using the specified commands.
ReadNodes(params OpcReadNode[])Reads one or more values of one or more attributes of one or more nodes using the specified commands.

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

Exceptions (all overloads)

ExceptionCondition
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.

ReadNodes(IEnumerable<OpcNodeId>) ​

Reads the Value attribute of the nodes specified by nodeIds.

csharp
public IEnumerable<OpcValue> ReadNodes(IEnumerable<OpcNodeId> nodeIds)
vbnet
Public Function ReadNodes(
    nodeIds As IEnumerable(Of OpcNodeId)) As IEnumerable(Of OpcValue)

Parameters

NameTypeDescription
nodeIdsIEnumerable<OpcNodeId>A sequence of OpcNodeId instances of the nodes to read.

Returns

IEnumerable<OpcValue>

A sequence of OpcValue instances its number and order of items matches the number and order of items in the nodeIds sequence. There is for each node identifier one entry which stores the value requested.

Exceptions

ExceptionCondition
ArgumentNullExceptionThe nodeIds sequence or one of its items is a null reference (Nothing in Visual Basic).
InvalidOperationExceptionThe read service is currently not supported, especially using the nodeIds specified.

ReadNodes(params OpcNodeId[]) ​

Reads the Value attribute of the nodes specified by nodeIds.

csharp
public IEnumerable<OpcValue> ReadNodes(params OpcNodeId[] nodeIds)
vbnet
Public Function ReadNodes(
    ParamArray nodeIds As OpcNodeId()) As IEnumerable(Of OpcValue)

Parameters

NameTypeDescription
nodeIdsparams OpcNodeId[]An array of OpcNodeId instances of the nodes to read.

Returns

IEnumerable<OpcValue>

A sequence of OpcValue instances its number and order of items matches the number and order of items in the nodeIds sequence. There is for each node identifier one entry which stores the value requested.

Exceptions

ExceptionCondition
ArgumentNullExceptionThe nodeIds sequence or one of its items is a null reference (Nothing in Visual Basic).
InvalidOperationExceptionThe read service is currently not supported, especially using the nodeIds specified.

ReadNodes(OpcAttribute, IEnumerable<OpcNodeId>) ​

Reads the attribute of the nodes specified by nodeIds.

csharp
public IEnumerable<OpcValue> ReadNodes(
    OpcAttribute attribute,
    IEnumerable<OpcNodeId> nodeIds)
vbnet
Public Function ReadNodes(
    attribute As OpcAttribute,
    nodeIds As IEnumerable(Of OpcNodeId)) As IEnumerable(Of OpcValue)

Parameters

NameTypeDescription
attributeOpcAttributeOne of the members defined by the OpcAttribute enumeration that defines which node attribute is to be used by the service.
nodeIdsIEnumerable<OpcNodeId>A sequence of OpcNodeId instances of the nodes to read.

Returns

IEnumerable<OpcValue>

A sequence of OpcValue instances its number and order of items matches the number and order of items in the nodeIds sequence. There is for each node identifier one entry which stores the value requested.

Exceptions

ExceptionCondition
ArgumentNullExceptionThe nodeIds sequence or one of its items is a null reference (Nothing in Visual Basic).
InvalidOperationExceptionThe read service is currently not supported, especially using the nodeIds specified.

ReadNodes(OpcAttribute, params OpcNodeId[]) ​

Reads the attribute of the nodes specified by nodeIds.

csharp
public IEnumerable<OpcValue> ReadNodes(
    OpcAttribute attribute,
    params OpcNodeId[] nodeIds)
vbnet
Public Function ReadNodes(
    attribute As OpcAttribute,
    ParamArray nodeIds As OpcNodeId()) As IEnumerable(Of OpcValue)

Parameters

NameTypeDescription
attributeOpcAttributeOne of the members defined by the OpcAttribute enumeration that defines which node attribute is to be used by the service.
nodeIdsparams OpcNodeId[]An array of OpcNodeId instances of the nodes to read.

Returns

IEnumerable<OpcValue>

A sequence of OpcValue instances its number and order of items matches the number and order of items in the nodeIds sequence. There is for each node identifier one entry which stores the value requested.

Exceptions

ExceptionCondition
ArgumentNullExceptionThe nodeIds sequence or one of its items is a null reference (Nothing in Visual Basic).
InvalidOperationExceptionThe read service is currently not supported, especially using the nodeIds specified.

ReadNodes(OpcRange, IEnumerable<OpcNodeId>) ​

since v2.24

Reads the range from the Value attribute of the nodes specified by nodeIds.

csharp
public IEnumerable<OpcValue> ReadNodes(
    OpcRange range,
    IEnumerable<OpcNodeId> nodeIds)
vbnet
Public Function ReadNodes(
    range As OpcRange,
    nodeIds As IEnumerable(Of OpcNodeId)) As IEnumerable(Of OpcValue)

Parameters

NameTypeDescription
rangeOpcRangeThe OpcRange to use to identify the single element or range of elements to read.
nodeIdsIEnumerable<OpcNodeId>A sequence of OpcNodeId instances of the nodes to read.

Returns

IEnumerable<OpcValue>

A sequence of OpcValue instances its number and order of items matches the number and order of items in the nodeIds sequence. There is for each node identifier one entry which stores the value requested.

Exceptions

ExceptionCondition
ArgumentNullExceptionThe nodeIds sequence or one of its items is a null reference (Nothing in Visual Basic).
InvalidOperationExceptionThe read service is currently not supported, especially using the nodeIds specified.

ReadNodes(OpcRange, params OpcNodeId[]) ​

since v2.24

Reads the range from the Value attribute of the nodes specified by nodeIds.

csharp
public IEnumerable<OpcValue> ReadNodes(
    OpcRange range,
    params OpcNodeId[] nodeIds)
vbnet
Public Function ReadNodes(
    range As OpcRange,
    ParamArray nodeIds As OpcNodeId()) As IEnumerable(Of OpcValue)

Parameters

NameTypeDescription
rangeOpcRangeThe OpcRange to use to identify the single element or range of elements to read.
nodeIdsparams OpcNodeId[]An array of OpcNodeId instances of the nodes to read.

Returns

IEnumerable<OpcValue>

A sequence of OpcValue instances its number and order of items matches the number and order of items in the nodeIds sequence. There is for each node identifier one entry which stores the value requested.

Exceptions

ExceptionCondition
ArgumentNullExceptionThe nodeIds sequence or one of its items is a null reference (Nothing in Visual Basic).
InvalidOperationExceptionThe read service is currently not supported, especially using the nodeIds specified.

ReadNodes(OpcAttribute, OpcRange, IEnumerable<OpcNodeId>) ​

since v2.24

Reads the range from the attribute of the nodes specified by nodeIds.

csharp
public IEnumerable<OpcValue> ReadNodes(
    OpcAttribute attribute,
    OpcRange range,
    IEnumerable<OpcNodeId> nodeIds)
vbnet
Public Function ReadNodes(
    attribute As OpcAttribute,
    range As OpcRange,
    nodeIds As IEnumerable(Of OpcNodeId)) As IEnumerable(Of OpcValue)

Parameters

NameTypeDescription
attributeOpcAttributeOne of the members defined by the OpcAttribute enumeration that defines which node attribute is to be used by the service.
rangeOpcRangeThe OpcRange to use to identify the single element or range of elements to read.
nodeIdsIEnumerable<OpcNodeId>A sequence of OpcNodeId instances of the nodes to read.

Returns

IEnumerable<OpcValue>

A sequence of OpcValue instances its number and order of items matches the number and order of items in the nodeIds sequence. There is for each node identifier one entry which stores the value requested.

Exceptions

ExceptionCondition
ArgumentNullExceptionThe nodeIds sequence or one of its items is a null reference (Nothing in Visual Basic).
InvalidOperationExceptionThe read service is currently not supported, especially using the nodeIds specified.

ReadNodes(OpcAttribute, OpcRange, params OpcNodeId[]) ​

since v2.24

Reads the range from the attribute of the nodes specified by nodeIds.

csharp
public IEnumerable<OpcValue> ReadNodes(
    OpcAttribute attribute,
    OpcRange range,
    params OpcNodeId[] nodeIds)
vbnet
Public Function ReadNodes(
    attribute As OpcAttribute,
    range As OpcRange,
    ParamArray nodeIds As OpcNodeId()) As IEnumerable(Of OpcValue)

Parameters

NameTypeDescription
attributeOpcAttributeOne of the members defined by the OpcAttribute enumeration that defines which node attribute is to be used by the service.
rangeOpcRangeThe OpcRange to use to identify the single element or range of elements to read.
nodeIdsparams OpcNodeId[]An array of OpcNodeId instances of the nodes to read.

Returns

IEnumerable<OpcValue>

A sequence of OpcValue instances its number and order of items matches the number and order of items in the nodeIds sequence. There is for each node identifier one entry which stores the value requested.

Exceptions

ExceptionCondition
ArgumentNullExceptionThe nodeIds sequence or one of its items is a null reference (Nothing in Visual Basic).
InvalidOperationExceptionThe read service is currently not supported, especially using the nodeIds specified.

ReadNodes(IEnumerable<OpcReadNode>) ​

Reads one or more values of one or more attributes of one or more nodes using the specified commands.

csharp
public IEnumerable<OpcValue> ReadNodes(IEnumerable<OpcReadNode> commands)
vbnet
Public Function ReadNodes(
    commands As IEnumerable(Of OpcReadNode)) As IEnumerable(Of OpcValue)

Parameters

NameTypeDescription
commandsIEnumerable<OpcReadNode>A sequence of OpcReadNode instances to process.

Returns

IEnumerable<OpcValue>

A sequence of OpcValue instances its number and order of items matches the number and order of items in the commands sequence. There is for each command one entry which stores the value requested by that command.

Exceptions

ExceptionCondition
ArgumentNullExceptionThe commands sequence or one of its items is a null reference (Nothing in Visual Basic).
InvalidOperationExceptionThe read service is currently not supported, especially using the commands specified.

ReadNodes(params OpcReadNode[]) ​

Reads one or more values of one or more attributes of one or more nodes using the specified commands.

csharp
public IEnumerable<OpcValue> ReadNodes(params OpcReadNode[] commands)
vbnet
Public Function ReadNodes(
    ParamArray commands As OpcReadNode()) As IEnumerable(Of OpcValue)

Parameters

NameTypeDescription
commandsparams OpcReadNode[]An array of OpcReadNode instances to process.

Returns

IEnumerable<OpcValue>

A sequence of OpcValue instances its number and order of items matches the number and order of items in the commands sequence. There is for each command one entry which stores the value requested by that command.

Exceptions

ExceptionCondition
ArgumentNullExceptionThe commands array or one of its items is a null reference (Nothing in Visual Basic).
InvalidOperationExceptionThe read service is currently not supported, especially using the commands specified.