Skip to content

Reference

OpcClient.SubscribeNode Method

Subscribes the Value attribute of the node specified by nodeId.

Reference

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

45 overloads

OverloadDescription
SubscribeNode(byte[])Subscribes the Value attribute of the node specified by nodeId.
SubscribeNode(Guid)Subscribes the Value attribute of the node specified by nodeId.
SubscribeNode(int)Subscribes the Value attribute of the node specified by nodeId.
SubscribeNode(uint)Subscribes the Value attribute of the node specified by nodeId.
SubscribeNode(string)Subscribes the Value attribute of the node specified by nodeId.
SubscribeNode(byte[], OpcAttribute)Subscribes the attribute of the node specified by nodeId.
SubscribeNode(Guid, OpcAttribute)Subscribes the attribute of the node specified by nodeId.
SubscribeNode(int, OpcAttribute)Subscribes the attribute of the node specified by nodeId.
SubscribeNode(uint, OpcAttribute)Subscribes the attribute of the node specified by nodeId.
SubscribeNode(string, OpcAttribute)Subscribes the attribute of the node specified by nodeId.
SubscribeNode(byte[], int)Subscribes the Value attribute of the node specified by nodeId and namespaceIndex specified to operate on the Value attribute.
SubscribeNode(Guid, int)Subscribes the Value attribute of the node specified by nodeId and namespaceIndex specified to operate on the Value attribute.
SubscribeNode(int, int)Subscribes the Value attribute of the node specified by nodeId and namespaceIndex specified to operate on the Value attribute.
SubscribeNode(uint, int)Subscribes the Value attribute of the node specified by nodeId and namespaceIndex specified to operate on the Value attribute.
SubscribeNode(string, int)Subscribes the Value attribute of the node specified by nodeId and namespaceIndex specified to operate on the Value attribute.
SubscribeNode(byte[], int, OpcAttribute)Subscribes the attribute of the node specified by nodeId and namespaceIndex specified to operate on the attribute.
SubscribeNode(Guid, int, OpcAttribute)Subscribes the attribute of the node specified by nodeId and namespaceIndex specified to operate on the attribute.
SubscribeNode(int, int, OpcAttribute)Subscribes the attribute of the node specified by nodeId and namespaceIndex specified to operate on the attribute.
SubscribeNode(uint, int, OpcAttribute)Subscribes the attribute of the node specified by nodeId and namespaceIndex specified to operate on the attribute.
SubscribeNode(string, int, OpcAttribute)Subscribes the attribute of the node specified by nodeId and namespaceIndex specified to operate on the attribute.
SubscribeNode(byte[], OpcMonitoringFilter)Subscribes the Value attribute of the node specified by nodeId.
SubscribeNode(Guid, OpcMonitoringFilter)Subscribes the Value attribute of the node specified by nodeId.
SubscribeNode(int, OpcMonitoringFilter)Subscribes the Value attribute of the node specified by nodeId.
SubscribeNode(uint, OpcMonitoringFilter)Subscribes the Value attribute of the node specified by nodeId.
SubscribeNode(string, OpcMonitoringFilter)Subscribes the Value attribute of the node specified by nodeId.
SubscribeNode(byte[], int, OpcMonitoringFilter)Subscribes the Value attribute of the node specified by nodeId and namespaceIndex specified.
SubscribeNode(Guid, int, OpcMonitoringFilter)Subscribes the Value attribute of the node specified by nodeId and namespaceIndex specified.
SubscribeNode(int, int, OpcMonitoringFilter)Subscribes the Value attribute of the node specified by nodeId and namespaceIndex specified.
SubscribeNode(uint, int, OpcMonitoringFilter)Subscribes the Value attribute of the node specified by nodeId and namespaceIndex specified.
SubscribeNode(string, int, OpcMonitoringFilter)Subscribes the Value attribute of the node specified by nodeId and namespaceIndex specified.
SubscribeNode(byte[], OpcAttribute, OpcMonitoringFilter)Subscribes the attribute of the node specified by nodeId.
SubscribeNode(Guid, OpcAttribute, OpcMonitoringFilter)Subscribes the attribute of the node specified by nodeId.
SubscribeNode(int, OpcAttribute, OpcMonitoringFilter)Subscribes the attribute of the node specified by nodeId.
SubscribeNode(uint, OpcAttribute, OpcMonitoringFilter)Subscribes the attribute of the node specified by nodeId.
SubscribeNode(string, OpcAttribute, OpcMonitoringFilter)Subscribes the attribute of the node specified by nodeId.
SubscribeNode(byte[], int, OpcAttribute, OpcMonitoringFilter)Subscribes the attribute of the node specified by nodeId and namespaceIndex specified.
SubscribeNode(Guid, int, OpcAttribute, OpcMonitoringFilter)Subscribes the attribute of the node specified by nodeId and namespaceIndex specified.
SubscribeNode(int, int, OpcAttribute, OpcMonitoringFilter)Subscribes the attribute of the node specified by nodeId and namespaceIndex specified.
SubscribeNode(uint, int, OpcAttribute, OpcMonitoringFilter)Subscribes the attribute of the node specified by nodeId and namespaceIndex specified.
SubscribeNode(string, int, OpcAttribute, OpcMonitoringFilter)Subscribes the attribute of the node specified by nodeId and namespaceIndex specified.
SubscribeNode(OpcNodeId)Subscribes the Value attribute of the node specified by nodeId.
SubscribeNode(OpcNodeId, OpcAttribute)Subscribes the attribute of the node specified by nodeId.
SubscribeNode(OpcNodeId, OpcMonitoringFilter)Subscribes the Value attribute of the node specified by nodeId.
SubscribeNode(OpcNodeId, OpcAttribute, OpcMonitoringFilter)Subscribes the attribute of the node specified by nodeId.
SubscribeNode(OpcSubscribeNode)Creates a OpcSubscription using the OpcMonitoredItem setup defined by the command 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.

SubscribeNode(byte[]) ​

Subscribes the Value attribute of the node specified by nodeId.

csharp
public OpcSubscription SubscribeNode(byte[] nodeId)
vbnet
Public Function SubscribeNode(nodeId As Byte()) As OpcSubscription

Parameters

NameTypeDescription
nodeIdByte[]The opaque node identifier of the node to subscribe.

Returns

OpcSubscription

A new instance of the OpcSubscription class with a single OpcMonitoredItem 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 this method.

Exceptions

ExceptionCondition
ArgumentExceptionThe nodeId is empty.

SubscribeNode(Guid) ​

Subscribes the Value attribute of the node specified by nodeId.

csharp
public OpcSubscription SubscribeNode(Guid nodeId)
vbnet
Public Function SubscribeNode(nodeId As Guid) As OpcSubscription

Parameters

NameTypeDescription
nodeIdGuidThe general unique identifier (= GUID) of the node to subscribe.

Returns

OpcSubscription

A new instance of the OpcSubscription class with a single OpcMonitoredItem 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 this method.

Exceptions

ExceptionCondition
ArgumentExceptionThe nodeId is empty.

SubscribeNode(int) ​

Subscribes the Value attribute of the node specified by nodeId.

csharp
public OpcSubscription SubscribeNode(int nodeId)
vbnet
Public Function SubscribeNode(nodeId As Integer) As OpcSubscription

Parameters

NameTypeDescription
nodeIdInt32The numeric node identifier of the node to subscribe.

Returns

OpcSubscription

A new instance of the OpcSubscription class with a single OpcMonitoredItem 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 this method.

Exceptions

ExceptionCondition
ArgumentExceptionThe nodeId is empty.

SubscribeNode(uint) ​

Subscribes the Value attribute of the node specified by nodeId.

csharp
public OpcSubscription SubscribeNode(uint nodeId)
vbnet
Public Function SubscribeNode(nodeId As UInteger) As OpcSubscription

Parameters

NameTypeDescription
nodeIdUInt32The numeric node identifier of the node to subscribe.

Returns

OpcSubscription

A new instance of the OpcSubscription class with a single OpcMonitoredItem 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 this method.

Exceptions

ExceptionCondition
ArgumentExceptionThe nodeId is empty.

SubscribeNode(string) ​

Subscribes the Value attribute of the node specified by nodeId.

csharp
public OpcSubscription SubscribeNode(string nodeId)
vbnet
Public Function SubscribeNode(nodeId As String) As OpcSubscription

Parameters

NameTypeDescription
nodeIdStringThe textual node identifier of the node to subscribe.

Returns

OpcSubscription

A new instance of the OpcSubscription class with a single OpcMonitoredItem 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 this method.

Exceptions

ExceptionCondition
ArgumentExceptionThe nodeId is empty.

SubscribeNode(byte[], OpcAttribute) ​

Subscribes the attribute of the node specified by nodeId.

csharp
public OpcSubscription SubscribeNode(byte[] nodeId, OpcAttribute attribute)
vbnet
Public Function SubscribeNode(
    nodeId As Byte(),
    attribute As OpcAttribute) As OpcSubscription

Parameters

NameTypeDescription
nodeIdByte[]The opaque node identifier of the node to subscribe.
attributeOpcAttributeOne of the members defined by the OpcAttribute enumeration that defines which node attribute is to be used by the subscription.

Returns

OpcSubscription

A new instance of the OpcSubscription class with a single OpcMonitoredItem 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 this method.

Exceptions

ExceptionCondition
ArgumentExceptionThe nodeId is empty.

SubscribeNode(Guid, OpcAttribute) ​

Subscribes the attribute of the node specified by nodeId.

csharp
public OpcSubscription SubscribeNode(Guid nodeId, OpcAttribute attribute)
vbnet
Public Function SubscribeNode(
    nodeId As Guid,
    attribute As OpcAttribute) As OpcSubscription

Parameters

NameTypeDescription
nodeIdGuidThe general unique identifier (= GUID) of the node to subscribe.
attributeOpcAttributeOne of the members defined by the OpcAttribute enumeration that defines which node attribute is to be used by the subscription.

Returns

OpcSubscription

A new instance of the OpcSubscription class with a single OpcMonitoredItem 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 this method.

Exceptions

ExceptionCondition
ArgumentExceptionThe nodeId is empty.

SubscribeNode(int, OpcAttribute) ​

Subscribes the attribute of the node specified by nodeId.

csharp
public OpcSubscription SubscribeNode(int nodeId, OpcAttribute attribute)
vbnet
Public Function SubscribeNode(
    nodeId As Integer,
    attribute As OpcAttribute) As OpcSubscription

Parameters

NameTypeDescription
nodeIdInt32The numeric node identifier of the node to subscribe.
attributeOpcAttributeOne of the members defined by the OpcAttribute enumeration that defines which node attribute is to be used by the subscription.

Returns

OpcSubscription

A new instance of the OpcSubscription class with a single OpcMonitoredItem 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 this method.

Exceptions

ExceptionCondition
ArgumentExceptionThe nodeId is empty.

SubscribeNode(uint, OpcAttribute) ​

Subscribes the attribute of the node specified by nodeId.

csharp
public OpcSubscription SubscribeNode(uint nodeId, OpcAttribute attribute)
vbnet
Public Function SubscribeNode(
    nodeId As UInteger,
    attribute As OpcAttribute) As OpcSubscription

Parameters

NameTypeDescription
nodeIdUInt32The numeric node identifier of the node to subscribe.
attributeOpcAttributeOne of the members defined by the OpcAttribute enumeration that defines which node attribute is to be used by the subscription.

Returns

OpcSubscription

A new instance of the OpcSubscription class with a single OpcMonitoredItem 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 this method.

Exceptions

ExceptionCondition
ArgumentExceptionThe nodeId is empty.

SubscribeNode(string, OpcAttribute) ​

Subscribes the attribute of the node specified by nodeId.

csharp
public OpcSubscription SubscribeNode(string nodeId, OpcAttribute attribute)
vbnet
Public Function SubscribeNode(
    nodeId As String,
    attribute As OpcAttribute) As OpcSubscription

Parameters

NameTypeDescription
nodeIdStringThe textual node identifier of the node to subscribe.
attributeOpcAttributeOne of the members defined by the OpcAttribute enumeration that defines which node attribute is to be used by the subscription.

Returns

OpcSubscription

A new instance of the OpcSubscription class with a single OpcMonitoredItem 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 this method.

Exceptions

ExceptionCondition
ArgumentExceptionThe nodeId is empty.

SubscribeNode(byte[], int) ​

Subscribes the Value attribute of the node specified by nodeId and namespaceIndex specified to operate on the Value attribute.

csharp
public OpcSubscription SubscribeNode(byte[] nodeId, int namespaceIndex)
vbnet
Public Function SubscribeNode(
    nodeId As Byte(),
    namespaceIndex As Integer) As OpcSubscription

Parameters

NameTypeDescription
nodeIdByte[]The opaque node identifier of the node to subscribe.
namespaceIndexInt32The index of the namespace within that the node with the nodeId specified can be located.

Returns

OpcSubscription

A new instance of the OpcSubscription class with a single OpcMonitoredItem 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 this method.

Exceptions

ExceptionCondition
ArgumentExceptionThe nodeId is empty.

SubscribeNode(Guid, int) ​

Subscribes the Value attribute of the node specified by nodeId and namespaceIndex specified to operate on the Value attribute.

csharp
public OpcSubscription SubscribeNode(Guid nodeId, int namespaceIndex)
vbnet
Public Function SubscribeNode(
    nodeId As Guid,
    namespaceIndex As Integer) As OpcSubscription

Parameters

NameTypeDescription
nodeIdGuidThe general unique identifier (= GUID) of the node to subscribe.
namespaceIndexInt32The index of the namespace within that the node with the nodeId specified can be located.

Returns

OpcSubscription

A new instance of the OpcSubscription class with a single OpcMonitoredItem 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 this method.

Exceptions

ExceptionCondition
ArgumentExceptionThe nodeId is empty.

SubscribeNode(int, int) ​

Subscribes the Value attribute of the node specified by nodeId and namespaceIndex specified to operate on the Value attribute.

csharp
public OpcSubscription SubscribeNode(int nodeId, int namespaceIndex)
vbnet
Public Function SubscribeNode(
    nodeId As Integer,
    namespaceIndex As Integer) As OpcSubscription

Parameters

NameTypeDescription
nodeIdInt32The numeric node identifier of the node to subscribe.
namespaceIndexInt32The index of the namespace within that the node with the nodeId specified can be located.

Returns

OpcSubscription

A new instance of the OpcSubscription class with a single OpcMonitoredItem 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 this method.

Exceptions

ExceptionCondition
ArgumentExceptionThe nodeId is empty.

SubscribeNode(uint, int) ​

Subscribes the Value attribute of the node specified by nodeId and namespaceIndex specified to operate on the Value attribute.

csharp
public OpcSubscription SubscribeNode(uint nodeId, int namespaceIndex)
vbnet
Public Function SubscribeNode(
    nodeId As UInteger,
    namespaceIndex As Integer) As OpcSubscription

Parameters

NameTypeDescription
nodeIdUInt32The numeric node identifier of the node to subscribe.
namespaceIndexInt32The index of the namespace within that the node with the nodeId specified can be located.

Returns

OpcSubscription

A new instance of the OpcSubscription class with a single OpcMonitoredItem 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 this method.

Exceptions

ExceptionCondition
ArgumentExceptionThe nodeId is empty.

SubscribeNode(string, int) ​

Subscribes the Value attribute of the node specified by nodeId and namespaceIndex specified to operate on the Value attribute.

csharp
public OpcSubscription SubscribeNode(string nodeId, int namespaceIndex)
vbnet
Public Function SubscribeNode(
    nodeId As String,
    namespaceIndex As Integer) As OpcSubscription

Parameters

NameTypeDescription
nodeIdStringThe textual node identifier of the node to subscribe.
namespaceIndexInt32The index of the namespace within that the node with the nodeId specified can be located.

Returns

OpcSubscription

A new instance of the OpcSubscription class with a single OpcMonitoredItem 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 this method.

Exceptions

ExceptionCondition
ArgumentExceptionThe nodeId is empty.

SubscribeNode(byte[], int, OpcAttribute) ​

Subscribes the attribute of the node specified by nodeId and namespaceIndex specified to operate on the attribute.

csharp
public OpcSubscription SubscribeNode(
    byte[] nodeId,
    int namespaceIndex,
    OpcAttribute attribute)
vbnet
Public Function SubscribeNode(
    nodeId As Byte(),
    namespaceIndex As Integer,
    attribute As OpcAttribute) As OpcSubscription

Parameters

NameTypeDescription
nodeIdByte[]The opaque node identifier of the node to subscribe.
namespaceIndexInt32The index of the namespace within that the node with the nodeId specified can be located.
attributeOpcAttributeOne of the members defined by the OpcAttribute enumeration that defines which node attribute is to be used by the subscription.

Returns

OpcSubscription

A new instance of the OpcSubscription class with a single OpcMonitoredItem 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 this method.

Exceptions

ExceptionCondition
ArgumentExceptionThe nodeId is empty.

SubscribeNode(Guid, int, OpcAttribute) ​

Subscribes the attribute of the node specified by nodeId and namespaceIndex specified to operate on the attribute.

csharp
public OpcSubscription SubscribeNode(
    Guid nodeId,
    int namespaceIndex,
    OpcAttribute attribute)
vbnet
Public Function SubscribeNode(
    nodeId As Guid,
    namespaceIndex As Integer,
    attribute As OpcAttribute) As OpcSubscription

Parameters

NameTypeDescription
nodeIdGuidThe general unique identifier (= GUID) of the node to subscribe.
namespaceIndexInt32The index of the namespace within that the node with the nodeId specified can be located.
attributeOpcAttributeOne of the members defined by the OpcAttribute enumeration that defines which node attribute is to be used by the subscription.

Returns

OpcSubscription

A new instance of the OpcSubscription class with a single OpcMonitoredItem 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 this method.

Exceptions

ExceptionCondition
ArgumentExceptionThe nodeId is empty.

SubscribeNode(int, int, OpcAttribute) ​

Subscribes the attribute of the node specified by nodeId and namespaceIndex specified to operate on the attribute.

csharp
public OpcSubscription SubscribeNode(
    int nodeId,
    int namespaceIndex,
    OpcAttribute attribute)
vbnet
Public Function SubscribeNode(
    nodeId As Integer,
    namespaceIndex As Integer,
    attribute As OpcAttribute) As OpcSubscription

Parameters

NameTypeDescription
nodeIdInt32The numeric node identifier of the node to subscribe.
namespaceIndexInt32The index of the namespace within that the node with the nodeId specified can be located.
attributeOpcAttributeOne of the members defined by the OpcAttribute enumeration that defines which node attribute is to be used by the subscription.

Returns

OpcSubscription

A new instance of the OpcSubscription class with a single OpcMonitoredItem 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 this method.

Exceptions

ExceptionCondition
ArgumentExceptionThe nodeId is empty.

SubscribeNode(uint, int, OpcAttribute) ​

Subscribes the attribute of the node specified by nodeId and namespaceIndex specified to operate on the attribute.

csharp
public OpcSubscription SubscribeNode(
    uint nodeId,
    int namespaceIndex,
    OpcAttribute attribute)
vbnet
Public Function SubscribeNode(
    nodeId As UInteger,
    namespaceIndex As Integer,
    attribute As OpcAttribute) As OpcSubscription

Parameters

NameTypeDescription
nodeIdUInt32The numeric node identifier of the node to subscribe.
namespaceIndexInt32The index of the namespace within that the node with the nodeId specified can be located.
attributeOpcAttributeOne of the members defined by the OpcAttribute enumeration that defines which node attribute is to be used by the subscription.

Returns

OpcSubscription

A new instance of the OpcSubscription class with a single OpcMonitoredItem 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 this method.

Exceptions

ExceptionCondition
ArgumentExceptionThe nodeId is empty.

SubscribeNode(string, int, OpcAttribute) ​

Subscribes the attribute of the node specified by nodeId and namespaceIndex specified to operate on the attribute.

csharp
public OpcSubscription SubscribeNode(
    string nodeId,
    int namespaceIndex,
    OpcAttribute attribute)
vbnet
Public Function SubscribeNode(
    nodeId As String,
    namespaceIndex As Integer,
    attribute As OpcAttribute) As OpcSubscription

Parameters

NameTypeDescription
nodeIdStringThe textual node identifier of the node to subscribe.
namespaceIndexInt32The index of the namespace within that the node with the nodeId specified can be located.
attributeOpcAttributeOne of the members defined by the OpcAttribute enumeration that defines which node attribute is to be used by the subscription.

Returns

OpcSubscription

A new instance of the OpcSubscription class with a single OpcMonitoredItem 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 this method.

Exceptions

ExceptionCondition
ArgumentExceptionThe nodeId is empty.

SubscribeNode(byte[], OpcMonitoringFilter) ​

Subscribes the Value attribute of the node specified by nodeId.

csharp
public OpcSubscription SubscribeNode(byte[] nodeId, OpcMonitoringFilter filter)
vbnet
Public Function SubscribeNode(
    nodeId As Byte(),
    filter As OpcMonitoringFilter) As OpcSubscription

Parameters

NameTypeDescription
nodeIdByte[]The opaque node identifier of the node to subscribe.
filterOpcMonitoringFilterThe OpcMonitoringFilter to be used by the server's subscription to - which the monitored item belongs - to filter the monitored data before it is reported to the client, which owns the monitored item.

Returns

OpcSubscription

A new instance of the OpcSubscription class with a single OpcMonitoredItem 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 this method.

Exceptions

ExceptionCondition
ArgumentExceptionThe nodeId is empty.

SubscribeNode(Guid, OpcMonitoringFilter) ​

Subscribes the Value attribute of the node specified by nodeId.

csharp
public OpcSubscription SubscribeNode(Guid nodeId, OpcMonitoringFilter filter)
vbnet
Public Function SubscribeNode(
    nodeId As Guid,
    filter As OpcMonitoringFilter) As OpcSubscription

Parameters

NameTypeDescription
nodeIdGuidThe general unique identifier (= GUID) of the node to subscribe.
filterOpcMonitoringFilterThe OpcMonitoringFilter to be used by the server's subscription to - which the monitored item belongs - to filter the monitored data before it is reported to the client, which owns the monitored item.

Returns

OpcSubscription

A new instance of the OpcSubscription class with a single OpcMonitoredItem 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 this method.

Exceptions

ExceptionCondition
ArgumentExceptionThe nodeId is empty.

SubscribeNode(int, OpcMonitoringFilter) ​

Subscribes the Value attribute of the node specified by nodeId.

csharp
public OpcSubscription SubscribeNode(int nodeId, OpcMonitoringFilter filter)
vbnet
Public Function SubscribeNode(
    nodeId As Integer,
    filter As OpcMonitoringFilter) As OpcSubscription

Parameters

NameTypeDescription
nodeIdInt32The numeric node identifier of the node to subscribe.
filterOpcMonitoringFilterThe OpcMonitoringFilter to be used by the server's subscription to - which the monitored item belongs - to filter the monitored data before it is reported to the client, which owns the monitored item.

Returns

OpcSubscription

A new instance of the OpcSubscription class with a single OpcMonitoredItem 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 this method.

Exceptions

ExceptionCondition
ArgumentExceptionThe nodeId is empty.

SubscribeNode(uint, OpcMonitoringFilter) ​

Subscribes the Value attribute of the node specified by nodeId.

csharp
public OpcSubscription SubscribeNode(uint nodeId, OpcMonitoringFilter filter)
vbnet
Public Function SubscribeNode(
    nodeId As UInteger,
    filter As OpcMonitoringFilter) As OpcSubscription

Parameters

NameTypeDescription
nodeIdUInt32The numeric node identifier of the node to subscribe.
filterOpcMonitoringFilterThe OpcMonitoringFilter to be used by the server's subscription to - which the monitored item belongs - to filter the monitored data before it is reported to the client, which owns the monitored item.

Returns

OpcSubscription

A new instance of the OpcSubscription class with a single OpcMonitoredItem 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 this method.

Exceptions

ExceptionCondition
ArgumentExceptionThe nodeId is empty.

SubscribeNode(string, OpcMonitoringFilter) ​

Subscribes the Value attribute of the node specified by nodeId.

csharp
public OpcSubscription SubscribeNode(string nodeId, OpcMonitoringFilter filter)
vbnet
Public Function SubscribeNode(
    nodeId As String,
    filter As OpcMonitoringFilter) As OpcSubscription

Parameters

NameTypeDescription
nodeIdStringThe textual node identifier of the node to subscribe.
filterOpcMonitoringFilterThe OpcMonitoringFilter to be used by the server's subscription to - which the monitored item belongs - to filter the monitored data before it is reported to the client, which owns the monitored item.

Returns

OpcSubscription

A new instance of the OpcSubscription class with a single OpcMonitoredItem 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 this method.

Exceptions

ExceptionCondition
ArgumentExceptionThe nodeId is empty.

SubscribeNode(byte[], int, OpcMonitoringFilter) ​

Subscribes the Value attribute of the node specified by nodeId and namespaceIndex specified.

csharp
public OpcSubscription SubscribeNode(
    byte[] nodeId,
    int namespaceIndex,
    OpcMonitoringFilter filter)
vbnet
Public Function SubscribeNode(
    nodeId As Byte(),
    namespaceIndex As Integer,
    filter As OpcMonitoringFilter) As OpcSubscription

Parameters

NameTypeDescription
nodeIdByte[]The opaque node identifier of the node to subscribe.
namespaceIndexInt32The index of the namespace within that the node with the nodeId specified can be located.
filterOpcMonitoringFilterThe OpcMonitoringFilter to be used by the server's subscription to - which the monitored item belongs - to filter the monitored data before it is reported to the client, which owns the monitored item.

Returns

OpcSubscription

A new instance of the OpcSubscription class with a single OpcMonitoredItem 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 this method.

Exceptions

ExceptionCondition
ArgumentExceptionThe nodeId is empty.

SubscribeNode(Guid, int, OpcMonitoringFilter) ​

Subscribes the Value attribute of the node specified by nodeId and namespaceIndex specified.

csharp
public OpcSubscription SubscribeNode(
    Guid nodeId,
    int namespaceIndex,
    OpcMonitoringFilter filter)
vbnet
Public Function SubscribeNode(
    nodeId As Guid,
    namespaceIndex As Integer,
    filter As OpcMonitoringFilter) As OpcSubscription

Parameters

NameTypeDescription
nodeIdGuidThe general unique identifier (= GUID) of the node to subscribe.
namespaceIndexInt32The index of the namespace within that the node with the nodeId specified can be located.
filterOpcMonitoringFilterThe OpcMonitoringFilter to be used by the server's subscription to - which the monitored item belongs - to filter the monitored data before it is reported to the client, which owns the monitored item.

Returns

OpcSubscription

A new instance of the OpcSubscription class with a single OpcMonitoredItem 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 this method.

Exceptions

ExceptionCondition
ArgumentExceptionThe nodeId is empty.

SubscribeNode(int, int, OpcMonitoringFilter) ​

Subscribes the Value attribute of the node specified by nodeId and namespaceIndex specified.

csharp
public OpcSubscription SubscribeNode(
    int nodeId,
    int namespaceIndex,
    OpcMonitoringFilter filter)
vbnet
Public Function SubscribeNode(
    nodeId As Integer,
    namespaceIndex As Integer,
    filter As OpcMonitoringFilter) As OpcSubscription

Parameters

NameTypeDescription
nodeIdInt32The numeric node identifier of the node to subscribe.
namespaceIndexInt32The index of the namespace within that the node with the nodeId specified can be located.
filterOpcMonitoringFilterThe OpcMonitoringFilter to be used by the server's subscription to - which the monitored item belongs - to filter the monitored data before it is reported to the client, which owns the monitored item.

Returns

OpcSubscription

A new instance of the OpcSubscription class with a single OpcMonitoredItem 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 this method.

Exceptions

ExceptionCondition
ArgumentExceptionThe nodeId is empty.

SubscribeNode(uint, int, OpcMonitoringFilter) ​

Subscribes the Value attribute of the node specified by nodeId and namespaceIndex specified.

csharp
public OpcSubscription SubscribeNode(
    uint nodeId,
    int namespaceIndex,
    OpcMonitoringFilter filter)
vbnet
Public Function SubscribeNode(
    nodeId As UInteger,
    namespaceIndex As Integer,
    filter As OpcMonitoringFilter) As OpcSubscription

Parameters

NameTypeDescription
nodeIdUInt32The numeric node identifier of the node to subscribe.
namespaceIndexInt32The index of the namespace within that the node with the nodeId specified can be located.
filterOpcMonitoringFilterThe OpcMonitoringFilter to be used by the server's subscription to - which the monitored item belongs - to filter the monitored data before it is reported to the client, which owns the monitored item.

Returns

OpcSubscription

A new instance of the OpcSubscription class with a single OpcMonitoredItem 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 this method.

Exceptions

ExceptionCondition
ArgumentExceptionThe nodeId is empty.

SubscribeNode(string, int, OpcMonitoringFilter) ​

Subscribes the Value attribute of the node specified by nodeId and namespaceIndex specified.

csharp
public OpcSubscription SubscribeNode(
    string nodeId,
    int namespaceIndex,
    OpcMonitoringFilter filter)
vbnet
Public Function SubscribeNode(
    nodeId As String,
    namespaceIndex As Integer,
    filter As OpcMonitoringFilter) As OpcSubscription

Parameters

NameTypeDescription
nodeIdStringThe textual node identifier of the node to subscribe.
namespaceIndexInt32The index of the namespace within that the node with the nodeId specified can be located.
filterOpcMonitoringFilterThe OpcMonitoringFilter to be used by the server's subscription to - which the monitored item belongs - to filter the monitored data before it is reported to the client, which owns the monitored item.

Returns

OpcSubscription

A new instance of the OpcSubscription class with a single OpcMonitoredItem 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 this method.

Exceptions

ExceptionCondition
ArgumentExceptionThe nodeId is empty.

SubscribeNode(byte[], OpcAttribute, OpcMonitoringFilter) ​

Subscribes the attribute of the node specified by nodeId.

csharp
public OpcSubscription SubscribeNode(
    byte[] nodeId,
    OpcAttribute attribute,
    OpcMonitoringFilter filter)
vbnet
Public Function SubscribeNode(
    nodeId As Byte(),
    attribute As OpcAttribute,
    filter As OpcMonitoringFilter) As OpcSubscription

Parameters

NameTypeDescription
nodeIdByte[]The opaque node identifier of the node to subscribe.
attributeOpcAttributeOne of the members defined by the OpcAttribute enumeration that defines which node attribute is to be used by the subscription.
filterOpcMonitoringFilterThe OpcMonitoringFilter to be used by the server's subscription to - which the monitored item belongs - to filter the monitored data before it is reported to the client, which owns the monitored item.

Returns

OpcSubscription

A new instance of the OpcSubscription class with a single OpcMonitoredItem 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 this method.

Exceptions

ExceptionCondition
ArgumentExceptionThe nodeId is empty.

SubscribeNode(Guid, OpcAttribute, OpcMonitoringFilter) ​

Subscribes the attribute of the node specified by nodeId.

csharp
public OpcSubscription SubscribeNode(
    Guid nodeId,
    OpcAttribute attribute,
    OpcMonitoringFilter filter)
vbnet
Public Function SubscribeNode(
    nodeId As Guid,
    attribute As OpcAttribute,
    filter As OpcMonitoringFilter) As OpcSubscription

Parameters

NameTypeDescription
nodeIdGuidThe general unique identifier (= GUID) of the node to subscribe.
attributeOpcAttributeOne of the members defined by the OpcAttribute enumeration that defines which node attribute is to be used by the subscription.
filterOpcMonitoringFilterThe OpcMonitoringFilter to be used by the server's subscription to - which the monitored item belongs - to filter the monitored data before it is reported to the client, which owns the monitored item.

Returns

OpcSubscription

A new instance of the OpcSubscription class with a single OpcMonitoredItem 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 this method.

Exceptions

ExceptionCondition
ArgumentExceptionThe nodeId is empty.

SubscribeNode(int, OpcAttribute, OpcMonitoringFilter) ​

Subscribes the attribute of the node specified by nodeId.

csharp
public OpcSubscription SubscribeNode(
    int nodeId,
    OpcAttribute attribute,
    OpcMonitoringFilter filter)
vbnet
Public Function SubscribeNode(
    nodeId As Integer,
    attribute As OpcAttribute,
    filter As OpcMonitoringFilter) As OpcSubscription

Parameters

NameTypeDescription
nodeIdInt32The numeric node identifier of the node to subscribe.
attributeOpcAttributeOne of the members defined by the OpcAttribute enumeration that defines which node attribute is to be used by the subscription.
filterOpcMonitoringFilterThe OpcMonitoringFilter to be used by the server's subscription to - which the monitored item belongs - to filter the monitored data before it is reported to the client, which owns the monitored item.

Returns

OpcSubscription

A new instance of the OpcSubscription class with a single OpcMonitoredItem 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 this method.

Exceptions

ExceptionCondition
ArgumentExceptionThe nodeId is empty.

SubscribeNode(uint, OpcAttribute, OpcMonitoringFilter) ​

Subscribes the attribute of the node specified by nodeId.

csharp
public OpcSubscription SubscribeNode(
    uint nodeId,
    OpcAttribute attribute,
    OpcMonitoringFilter filter)
vbnet
Public Function SubscribeNode(
    nodeId As UInteger,
    attribute As OpcAttribute,
    filter As OpcMonitoringFilter) As OpcSubscription

Parameters

NameTypeDescription
nodeIdUInt32The numeric node identifier of the node to subscribe.
attributeOpcAttributeOne of the members defined by the OpcAttribute enumeration that defines which node attribute is to be used by the subscription.
filterOpcMonitoringFilterThe OpcMonitoringFilter to be used by the server's subscription to - which the monitored item belongs - to filter the monitored data before it is reported to the client, which owns the monitored item.

Returns

OpcSubscription

A new instance of the OpcSubscription class with a single OpcMonitoredItem 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 this method.

Exceptions

ExceptionCondition
ArgumentExceptionThe nodeId is empty.

SubscribeNode(string, OpcAttribute, OpcMonitoringFilter) ​

Subscribes the attribute of the node specified by nodeId.

csharp
public OpcSubscription SubscribeNode(
    string nodeId,
    OpcAttribute attribute,
    OpcMonitoringFilter filter)
vbnet
Public Function SubscribeNode(
    nodeId As String,
    attribute As OpcAttribute,
    filter As OpcMonitoringFilter) As OpcSubscription

Parameters

NameTypeDescription
nodeIdStringThe textual node identifier of the node to subscribe.
attributeOpcAttributeOne of the members defined by the OpcAttribute enumeration that defines which node attribute is to be used by the subscription.
filterOpcMonitoringFilterThe OpcMonitoringFilter to be used by the server's subscription to - which the monitored item belongs - to filter the monitored data before it is reported to the client, which owns the monitored item.

Returns

OpcSubscription

A new instance of the OpcSubscription class with a single OpcMonitoredItem 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 this method.

Exceptions

ExceptionCondition
ArgumentExceptionThe nodeId is empty.

SubscribeNode(byte[], int, OpcAttribute, OpcMonitoringFilter) ​

Subscribes the attribute of the node specified by nodeId and namespaceIndex specified.

csharp
public OpcSubscription SubscribeNode(
    byte[] nodeId,
    int namespaceIndex,
    OpcAttribute attribute,
    OpcMonitoringFilter filter)
vbnet
Public Function SubscribeNode(
    nodeId As Byte(),
    namespaceIndex As Integer,
    attribute As OpcAttribute,
    filter As OpcMonitoringFilter) As OpcSubscription

Parameters

NameTypeDescription
nodeIdByte[]The opaque node identifier of the node to subscribe.
namespaceIndexInt32The index of the namespace within that the node with the nodeId specified can be located.
attributeOpcAttributeOne of the members defined by the OpcAttribute enumeration that defines which node attribute is to be used by the subscription.
filterOpcMonitoringFilterThe OpcMonitoringFilter to be used by the server's subscription to - which the monitored item belongs - to filter the monitored data before it is reported to the client, which owns the monitored item.

Returns

OpcSubscription

A new instance of the OpcSubscription class with a single OpcMonitoredItem 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 this method.

Exceptions

ExceptionCondition
ArgumentExceptionThe nodeId is empty.

SubscribeNode(Guid, int, OpcAttribute, OpcMonitoringFilter) ​

Subscribes the attribute of the node specified by nodeId and namespaceIndex specified.

csharp
public OpcSubscription SubscribeNode(
    Guid nodeId,
    int namespaceIndex,
    OpcAttribute attribute,
    OpcMonitoringFilter filter)
vbnet
Public Function SubscribeNode(
    nodeId As Guid,
    namespaceIndex As Integer,
    attribute As OpcAttribute,
    filter As OpcMonitoringFilter) As OpcSubscription

Parameters

NameTypeDescription
nodeIdGuidThe general unique identifier (= GUID) of the node to subscribe.
namespaceIndexInt32The index of the namespace within that the node with the nodeId specified can be located.
attributeOpcAttributeOne of the members defined by the OpcAttribute enumeration that defines which node attribute is to be used by the subscription.
filterOpcMonitoringFilterThe OpcMonitoringFilter to be used by the server's subscription to - which the monitored item belongs - to filter the monitored data before it is reported to the client, which owns the monitored item.

Returns

OpcSubscription

A new instance of the OpcSubscription class with a single OpcMonitoredItem 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 this method.

Exceptions

ExceptionCondition
ArgumentExceptionThe nodeId is empty.

SubscribeNode(int, int, OpcAttribute, OpcMonitoringFilter) ​

Subscribes the attribute of the node specified by nodeId and namespaceIndex specified.

csharp
public OpcSubscription SubscribeNode(
    int nodeId,
    int namespaceIndex,
    OpcAttribute attribute,
    OpcMonitoringFilter filter)
vbnet
Public Function SubscribeNode(
    nodeId As Integer,
    namespaceIndex As Integer,
    attribute As OpcAttribute,
    filter As OpcMonitoringFilter) As OpcSubscription

Parameters

NameTypeDescription
nodeIdInt32The numeric node identifier of the node to subscribe.
namespaceIndexInt32The index of the namespace within that the node with the nodeId specified can be located.
attributeOpcAttributeOne of the members defined by the OpcAttribute enumeration that defines which node attribute is to be used by the subscription.
filterOpcMonitoringFilterThe OpcMonitoringFilter to be used by the server's subscription to - which the monitored item belongs - to filter the monitored data before it is reported to the client, which owns the monitored item.

Returns

OpcSubscription

A new instance of the OpcSubscription class with a single OpcMonitoredItem 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 this method.

Exceptions

ExceptionCondition
ArgumentExceptionThe nodeId is empty.

SubscribeNode(uint, int, OpcAttribute, OpcMonitoringFilter) ​

Subscribes the attribute of the node specified by nodeId and namespaceIndex specified.

csharp
public OpcSubscription SubscribeNode(
    uint nodeId,
    int namespaceIndex,
    OpcAttribute attribute,
    OpcMonitoringFilter filter)
vbnet
Public Function SubscribeNode(
    nodeId As UInteger,
    namespaceIndex As Integer,
    attribute As OpcAttribute,
    filter As OpcMonitoringFilter) As OpcSubscription

Parameters

NameTypeDescription
nodeIdUInt32The numeric node identifier of the node to subscribe.
namespaceIndexInt32The index of the namespace within that the node with the nodeId specified can be located.
attributeOpcAttributeOne of the members defined by the OpcAttribute enumeration that defines which node attribute is to be used by the subscription.
filterOpcMonitoringFilterThe OpcMonitoringFilter to be used by the server's subscription to - which the monitored item belongs - to filter the monitored data before it is reported to the client, which owns the monitored item.

Returns

OpcSubscription

A new instance of the OpcSubscription class with a single OpcMonitoredItem 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 this method.

Exceptions

ExceptionCondition
ArgumentExceptionThe nodeId is empty.

SubscribeNode(string, int, OpcAttribute, OpcMonitoringFilter) ​

Subscribes the attribute of the node specified by nodeId and namespaceIndex specified.

csharp
public OpcSubscription SubscribeNode(
    string nodeId,
    int namespaceIndex,
    OpcAttribute attribute,
    OpcMonitoringFilter filter)
vbnet
Public Function SubscribeNode(
    nodeId As String,
    namespaceIndex As Integer,
    attribute As OpcAttribute,
    filter As OpcMonitoringFilter) As OpcSubscription

Parameters

NameTypeDescription
nodeIdStringThe textual node identifier of the node to subscribe.
namespaceIndexInt32The index of the namespace within that the node with the nodeId specified can be located.
attributeOpcAttributeOne of the members defined by the OpcAttribute enumeration that defines which node attribute is to be used by the subscription.
filterOpcMonitoringFilterThe OpcMonitoringFilter to be used by the server's subscription to - which the monitored item belongs - to filter the monitored data before it is reported to the client, which owns the monitored item.

Returns

OpcSubscription

A new instance of the OpcSubscription class with a single OpcMonitoredItem 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 this method.

Exceptions

ExceptionCondition
ArgumentExceptionThe nodeId is empty.

SubscribeNode(OpcNodeId) ​

Subscribes the Value attribute of the node specified by nodeId.

csharp
public OpcSubscription SubscribeNode(OpcNodeId nodeId)
vbnet
Public Function SubscribeNode(nodeId As OpcNodeId) As OpcSubscription

Parameters

NameTypeDescription
nodeIdOpcNodeIdThe OpcNodeId of the node on which the service, who will execute this command, will operate on its Value attribute.

Returns

OpcSubscription

A new instance of the OpcSubscription class with a single OpcMonitoredItem 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 this method.

Exceptions

ExceptionCondition
ArgumentExceptionThe nodeId is empty.
ArgumentNullExceptionThe nodeId is a null reference (Nothing in Visual Basic).

SubscribeNode(OpcNodeId, OpcAttribute) ​

Subscribes the attribute of the node specified by nodeId.

csharp
public OpcSubscription SubscribeNode(OpcNodeId nodeId, OpcAttribute attribute)
vbnet
Public Function SubscribeNode(
    nodeId As OpcNodeId,
    attribute As OpcAttribute) As OpcSubscription

Parameters

NameTypeDescription
nodeIdOpcNodeIdThe OpcNodeId of the node on which the service, who will execute this command, will operate on its attribute.
attributeOpcAttributeOne of the members defined by the OpcAttribute enumeration that defines which node attribute is to be used by the subscription.

Returns

OpcSubscription

A new instance of the OpcSubscription class with a single OpcMonitoredItem 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 this method.

Exceptions

ExceptionCondition
ArgumentExceptionThe nodeId is empty.
ArgumentNullExceptionThe nodeId is a null reference (Nothing in Visual Basic).

SubscribeNode(OpcNodeId, OpcMonitoringFilter) ​

Subscribes the Value attribute of the node specified by nodeId.

csharp
public OpcSubscription SubscribeNode(
    OpcNodeId nodeId,
    OpcMonitoringFilter filter)
vbnet
Public Function SubscribeNode(
    nodeId As OpcNodeId,
    filter As OpcMonitoringFilter) As OpcSubscription

Parameters

NameTypeDescription
nodeIdOpcNodeIdThe OpcNodeId of the node on which the service, who will execute this command, will operate on its Value attribute.
filterOpcMonitoringFilterThe OpcMonitoringFilter to be used by the server's subscription to - which the monitored item belongs - to filter the monitored data before it is reported to the client, which owns the monitored item.

Returns

OpcSubscription

A new instance of the OpcSubscription class with a single OpcMonitoredItem 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 this method.

Exceptions

ExceptionCondition
ArgumentExceptionThe nodeId is empty.
ArgumentNullExceptionThe nodeId is a null reference (Nothing in Visual Basic).

SubscribeNode(OpcNodeId, OpcAttribute, OpcMonitoringFilter) ​

Subscribes the attribute of the node specified by nodeId.

csharp
public OpcSubscription SubscribeNode(
    OpcNodeId nodeId,
    OpcAttribute attribute,
    OpcMonitoringFilter filter)
vbnet
Public Function SubscribeNode(
    nodeId As OpcNodeId,
    attribute As OpcAttribute,
    filter As OpcMonitoringFilter) As OpcSubscription

Parameters

NameTypeDescription
nodeIdOpcNodeIdThe OpcNodeId of the node on which the service, who will execute this command, will operate on its attribute.
attributeOpcAttributeOne of the members defined by the OpcAttribute enumeration that defines which node attribute is to be used by the subscription.
filterOpcMonitoringFilterThe OpcMonitoringFilter to be used by the server's subscription to - which the monitored item belongs - to filter the monitored data before it is reported to the client, which owns the monitored item.

Returns

OpcSubscription

A new instance of the OpcSubscription class with a single OpcMonitoredItem 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 this method.

Exceptions

ExceptionCondition
ArgumentExceptionThe nodeId is empty.
ArgumentNullExceptionThe nodeId is a null reference (Nothing in Visual Basic).

SubscribeNode(OpcSubscribeNode) ​

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

csharp
public OpcSubscription SubscribeNode(OpcSubscribeNode command)
vbnet
Public Function SubscribeNode(command As OpcSubscribeNode) As OpcSubscription

Parameters

NameTypeDescription
commandOpcSubscribeNodeA OpcSubscribeNode command which is used to define the OpcMonitoredItem used by the OpcSubscription created.

Returns

OpcSubscription

A new instance of the OpcSubscription class with a single OpcMonitoredItem 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 command.

Exceptions

ExceptionCondition
ArgumentNullExceptionThe command is a null reference (Nothing in Visual Basic).