Skip to content

Reference

OpcClient.SubscribeNodes Method

Creates a OpcSubscription using the OpcMonitoredItem setup defined by the commands specified.

Reference

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

OverloadDescription
SubscribeNodes(IEnumerable<OpcSubscribeNode>)Creates a OpcSubscription using the OpcMonitoredItem setup defined by the commands specified.
SubscribeNodes(params OpcSubscribeNode[])Creates a OpcSubscription using the OpcMonitoredItem setup defined by the commands specified.

Exceptions (all overloads)

ExceptionCondition
InvalidOperationExceptionThe subscription service is currently not supported, especially using the arguments 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, BadTimestampsToReturnInvalid, BadSubscriptionIdInvalid, BadMonitoringModeInvalid, BadNodeIdInvalid, BadNodeIdUnknown, BadAttributeInvalid, BadIndexRangeInvalid, BadIndexRangeNoData, BadDataEncodingInvalid, BadDataEncodingUnsupported, BadMonitoredItemFilterInvalid, BadMonitoredItemFilterUnsupported, BadFilterNotAllowed, BadTooManySubscriptions and BadTooManyMonitoredItems.

SubscribeNodes(IEnumerable<OpcSubscribeNode>) ​

Creates a OpcSubscription using the OpcMonitoredItem setup defined by the commands specified.

csharp
public OpcSubscription SubscribeNodes(IEnumerable<OpcSubscribeNode> commands)
vbnet
Public Function SubscribeNodes(
    commands As IEnumerable(Of OpcSubscribeNode)) As OpcSubscription

Parameters

NameTypeDescription
commandsIEnumerable<OpcSubscribeNode>A sequence of OpcSubscribeNode commands which are used to define the OpcMonitoredItem's used by the OpcSubscription created.

Returns

OpcSubscription

A new instance of the OpcSubscription class with OpcMonitoredItem's setup with the information specified. The kind of monitored item and how it is used by the subscription depends on the number, type and values passed to the different OpcSubscribeNode commands.

Exceptions

ExceptionCondition
ArgumentNullExceptionThe commands or one of the items in the sequence is a null reference (Nothing in Visual Basic).
LicenseExceptionThe license is expired.

SubscribeNodes(params OpcSubscribeNode[]) ​

Creates a OpcSubscription using the OpcMonitoredItem setup defined by the commands specified.

csharp
public OpcSubscription SubscribeNodes(params OpcSubscribeNode[] commands)
vbnet
Public Function SubscribeNodes(
    ParamArray commands As OpcSubscribeNode()) As OpcSubscription

Parameters

NameTypeDescription
commandsparams OpcSubscribeNode[]An array of OpcSubscribeNode commands which are used to define the OpcMonitoredItem's used by the OpcSubscription created.

Returns

OpcSubscription

A new instance of the OpcSubscription class with OpcMonitoredItem's setup with the information specified. The kind of monitored item and how it is used by the subscription depends on the number, type and values passed to the different OpcSubscribeNode commands.

Exceptions

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