Skip to content

Reference

OpcClient.SubscribeEvent Method

Subscribes events on the node specified by nodeId.

Reference

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

44 overloads

OverloadDescription
SubscribeEvent(byte[], OpcEventReceivedEventHandler)Subscribes events on the node specified by nodeId.
SubscribeEvent(Guid, OpcEventReceivedEventHandler)Subscribes events on the node specified by nodeId.
SubscribeEvent(int, OpcEventReceivedEventHandler)Subscribes events on the node specified by nodeId.
SubscribeEvent(uint, OpcEventReceivedEventHandler)Subscribes events on the node specified by nodeId.
SubscribeEvent(string, OpcEventReceivedEventHandler)Subscribes events on the node specified by nodeId.
SubscribeEvent(byte[], OpcAttribute, OpcEventReceivedEventHandler)Subscribes events on the attribute of the node specified by nodeId.
SubscribeEvent(Guid, OpcAttribute, OpcEventReceivedEventHandler)Subscribes events on the attribute of the node specified by nodeId.
SubscribeEvent(int, OpcAttribute, OpcEventReceivedEventHandler)Subscribes events on the attribute of the node specified by nodeId.
SubscribeEvent(uint, OpcAttribute, OpcEventReceivedEventHandler)Subscribes events on the attribute of the node specified by nodeId.
SubscribeEvent(string, OpcAttribute, OpcEventReceivedEventHandler)Subscribes events on the attribute of the node specified by nodeId.
SubscribeEvent(byte[], int, OpcEventReceivedEventHandler)Subscribes events on the node specified by nodeId and namespaceIndex specified.
SubscribeEvent(Guid, int, OpcEventReceivedEventHandler)Subscribes events on the node specified by nodeId and namespaceIndex specified.
SubscribeEvent(int, int, OpcEventReceivedEventHandler)Subscribes events on the node specified by nodeId and namespaceIndex specified.
SubscribeEvent(uint, int, OpcEventReceivedEventHandler)Subscribes events on the node specified by nodeId and namespaceIndex specified.
SubscribeEvent(string, int, OpcEventReceivedEventHandler)Subscribes events on the node specified by nodeId and namespaceIndex specified.
SubscribeEvent(byte[], int, OpcAttribute, OpcEventReceivedEventHandler)Subscribes events on the attribute of the node specified by nodeId and namespaceIndex specified to operate on the attribute.
SubscribeEvent(Guid, int, OpcAttribute, OpcEventReceivedEventHandler)Subscribes events on the attribute of the node specified by nodeId and namespaceIndex specified to operate on the attribute.
SubscribeEvent(int, int, OpcAttribute, OpcEventReceivedEventHandler)Subscribes events on the attribute of the node specified by nodeId and namespaceIndex specified to operate on the attribute.
SubscribeEvent(uint, int, OpcAttribute, OpcEventReceivedEventHandler)Subscribes events on the attribute of the node specified by nodeId and namespaceIndex specified to operate on the attribute.
SubscribeEvent(string, int, OpcAttribute, OpcEventReceivedEventHandler)Subscribes events on the attribute of the node specified by nodeId and namespaceIndex specified to operate on the attribute.
SubscribeEvent(byte[], OpcEventFilter, OpcEventReceivedEventHandler)Subscribes events on the node specified by nodeId.
SubscribeEvent(Guid, OpcEventFilter, OpcEventReceivedEventHandler)Subscribes events on the node specified by nodeId.
SubscribeEvent(int, OpcEventFilter, OpcEventReceivedEventHandler)Subscribes events on the node specified by nodeId.
SubscribeEvent(uint, OpcEventFilter, OpcEventReceivedEventHandler)Subscribes events on the node specified by nodeId.
SubscribeEvent(string, OpcEventFilter, OpcEventReceivedEventHandler)Subscribes events on the node specified by nodeId.
SubscribeEvent(byte[], int, OpcEventFilter, OpcEventReceivedEventHandler)Subscribes events on the node specified by nodeId and namespaceIndex specified.
SubscribeEvent(Guid, int, OpcEventFilter, OpcEventReceivedEventHandler)Subscribes events on the node specified by nodeId and namespaceIndex specified.
SubscribeEvent(int, int, OpcEventFilter, OpcEventReceivedEventHandler)Subscribes events on the node specified by nodeId and namespaceIndex specified.
SubscribeEvent(uint, int, OpcEventFilter, OpcEventReceivedEventHandler)Subscribes events on the node specified by nodeId and namespaceIndex specified.
SubscribeEvent(string, int, OpcEventFilter, OpcEventReceivedEventHandler)Subscribes events on the node specified by nodeId and namespaceIndex specified.
SubscribeEvent(byte[], OpcAttribute, OpcEventFilter, OpcEventReceivedEventHandler)Subscribes events on the attribute of the node specified by nodeId.
SubscribeEvent(Guid, OpcAttribute, OpcEventFilter, OpcEventReceivedEventHandler)Subscribes events on the attribute of the node specified by nodeId.
SubscribeEvent(int, OpcAttribute, OpcEventFilter, OpcEventReceivedEventHandler)Subscribes events on the attribute of the node specified by nodeId.
SubscribeEvent(uint, OpcAttribute, OpcEventFilter, OpcEventReceivedEventHandler)Subscribes events on the attribute of the node specified by nodeId.
SubscribeEvent(string, OpcAttribute, OpcEventFilter, OpcEventReceivedEventHandler)Subscribes events on the attribute of the node specified by nodeId.
SubscribeEvent(byte[], int, OpcAttribute, OpcEventFilter, OpcEventReceivedEventHandler)Subscribes events on the attribute of the node specified by nodeId and namespaceIndex specified.
SubscribeEvent(Guid, int, OpcAttribute, OpcEventFilter, OpcEventReceivedEventHandler)Subscribes events on the attribute of the node specified by nodeId and namespaceIndex specified.
SubscribeEvent(int, int, OpcAttribute, OpcEventFilter, OpcEventReceivedEventHandler)Subscribes events on the attribute of the node specified by nodeId and namespaceIndex specified.
SubscribeEvent(uint, int, OpcAttribute, OpcEventFilter, OpcEventReceivedEventHandler)Subscribes events on the attribute of the node specified by nodeId and namespaceIndex specified.
SubscribeEvent(string, int, OpcAttribute, OpcEventFilter, OpcEventReceivedEventHandler)Subscribes events on the attribute of the node specified by nodeId and namespaceIndex specified.
SubscribeEvent(OpcNodeId, OpcEventReceivedEventHandler)Subscribes events on the node specified by nodeId.
SubscribeEvent(OpcNodeId, OpcAttribute, OpcEventReceivedEventHandler)Subscribes events on the attribute of the node specified by nodeId.
SubscribeEvent(OpcNodeId, OpcEventFilter, OpcEventReceivedEventHandler)Subscribes events on the node specified by nodeId.
SubscribeEvent(OpcNodeId, OpcAttribute, OpcEventFilter, OpcEventReceivedEventHandler)Subscribes events on the attribute of the node specified by nodeId.

Exceptions (all overloads)

ExceptionCondition
ArgumentExceptionThe nodeId is empty.
InvalidOperationExceptionThe subscription service is currently not supported, especially using the arguments specified.
ObjectDisposedExceptionThe object has been disposed of.

SubscribeEvent(byte[], OpcEventReceivedEventHandler) ​

Subscribes events on the node specified by nodeId.

csharp
public OpcSubscription SubscribeEvent(
    byte[] nodeId,
    OpcEventReceivedEventHandler received)
vbnet
Public Function SubscribeEvent(
    nodeId As Byte(),
    received As OpcEventReceivedEventHandler) As OpcSubscription

Parameters

NameTypeDescription
nodeIdByte[]The opaque node identifier of the node to subscribe.
receivedOpcEventReceivedEventHandlerThe OpcEventReceivedEventHandler method to assign as the event handler of the EventReceived event or a null reference (Nothing in Visual Basic) if there no event handler is to be assigned first.

Returns

OpcSubscription

A new instance of the OpcSubscription class with a single OpcMonitoredItem setup with the information specified. The kind of monitored item will when monitor events performed on the node identified by the values passed to this method.

Exceptions

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

SubscribeEvent(Guid, OpcEventReceivedEventHandler) ​

Subscribes events on the node specified by nodeId.

csharp
public OpcSubscription SubscribeEvent(
    Guid nodeId,
    OpcEventReceivedEventHandler received)
vbnet
Public Function SubscribeEvent(
    nodeId As Guid,
    received As OpcEventReceivedEventHandler) As OpcSubscription

Parameters

NameTypeDescription
nodeIdGuidThe general unique identifier (= GUID) of the node to subscribe.
receivedOpcEventReceivedEventHandlerThe OpcEventReceivedEventHandler method to assign as the event handler of the EventReceived event or a null reference (Nothing in Visual Basic) if there no event handler is to be assigned first.

Returns

OpcSubscription

A new instance of the OpcSubscription class with a single OpcMonitoredItem setup with the information specified. The kind of monitored item will when monitor events performed on the node identified by the values passed to this method.

Exceptions

ExceptionCondition
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, BadIndexRangeInvalid, BadIndexRangeNoData, BadDataEncodingInvalid, BadDataEncodingUnsupported, BadMonitoredItemFilterInvalid, BadMonitoredItemFilterUnsupported, BadFilterNotAllowed, BadTooManySubscriptions and BadTooManyMonitoredItems.

SubscribeEvent(int, OpcEventReceivedEventHandler) ​

Subscribes events on the node specified by nodeId.

csharp
public OpcSubscription SubscribeEvent(
    int nodeId,
    OpcEventReceivedEventHandler received)
vbnet
Public Function SubscribeEvent(
    nodeId As Integer,
    received As OpcEventReceivedEventHandler) As OpcSubscription

Parameters

NameTypeDescription
nodeIdInt32The numeric node identifier of the node to subscribe.
receivedOpcEventReceivedEventHandlerThe OpcEventReceivedEventHandler method to assign as the event handler of the EventReceived event or a null reference (Nothing in Visual Basic) if there no event handler is to be assigned first.

Returns

OpcSubscription

A new instance of the OpcSubscription class with a single OpcMonitoredItem setup with the information specified. The kind of monitored item will when monitor events performed on the node identified by the values passed to this method.

Exceptions

ExceptionCondition
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, BadIndexRangeInvalid, BadIndexRangeNoData, BadDataEncodingInvalid, BadDataEncodingUnsupported, BadMonitoredItemFilterInvalid, BadMonitoredItemFilterUnsupported, BadFilterNotAllowed, BadTooManySubscriptions and BadTooManyMonitoredItems.

SubscribeEvent(uint, OpcEventReceivedEventHandler) ​

Subscribes events on the node specified by nodeId.

csharp
public OpcSubscription SubscribeEvent(
    uint nodeId,
    OpcEventReceivedEventHandler received)
vbnet
Public Function SubscribeEvent(
    nodeId As UInteger,
    received As OpcEventReceivedEventHandler) As OpcSubscription

Parameters

NameTypeDescription
nodeIdUInt32The numeric node identifier of the node to subscribe.
receivedOpcEventReceivedEventHandlerThe OpcEventReceivedEventHandler method to assign as the event handler of the EventReceived event or a null reference (Nothing in Visual Basic) if there no event handler is to be assigned first.

Returns

OpcSubscription

A new instance of the OpcSubscription class with a single OpcMonitoredItem setup with the information specified. The kind of monitored item will when monitor events performed on the node identified by the values passed to this method.

Exceptions

ExceptionCondition
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, BadIndexRangeInvalid, BadIndexRangeNoData, BadDataEncodingInvalid, BadDataEncodingUnsupported, BadMonitoredItemFilterInvalid, BadMonitoredItemFilterUnsupported, BadFilterNotAllowed, BadTooManySubscriptions and BadTooManyMonitoredItems.

SubscribeEvent(string, OpcEventReceivedEventHandler) ​

Subscribes events on the node specified by nodeId.

csharp
public OpcSubscription SubscribeEvent(
    string nodeId,
    OpcEventReceivedEventHandler received)
vbnet
Public Function SubscribeEvent(
    nodeId As String,
    received As OpcEventReceivedEventHandler) As OpcSubscription

Parameters

NameTypeDescription
nodeIdStringThe textual node identifier of the node to subscribe.
receivedOpcEventReceivedEventHandlerThe OpcEventReceivedEventHandler method to assign as the event handler of the EventReceived event or a null reference (Nothing in Visual Basic) if there no event handler is to be assigned first.

Returns

OpcSubscription

A new instance of the OpcSubscription class with a single OpcMonitoredItem setup with the information specified. The kind of monitored item will when monitor events performed on the node identified by the values passed to this method.

Exceptions

ExceptionCondition
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, BadIndexRangeInvalid, BadIndexRangeNoData, BadDataEncodingInvalid, BadDataEncodingUnsupported, BadMonitoredItemFilterInvalid, BadMonitoredItemFilterUnsupported, BadFilterNotAllowed, BadTooManySubscriptions and BadTooManyMonitoredItems.

SubscribeEvent(byte[], OpcAttribute, OpcEventReceivedEventHandler) ​

Subscribes events on the attribute of the node specified by nodeId.

csharp
public OpcSubscription SubscribeEvent(
    byte[] nodeId,
    OpcAttribute attribute,
    OpcEventReceivedEventHandler received)
vbnet
Public Function SubscribeEvent(
    nodeId As Byte(),
    attribute As OpcAttribute,
    received As OpcEventReceivedEventHandler) 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.
receivedOpcEventReceivedEventHandlerThe OpcEventReceivedEventHandler method to assign as the event handler of the EventReceived event or a null reference (Nothing in Visual Basic) if there no event handler is to be assigned first.

Returns

OpcSubscription

A new instance of the OpcSubscription class with a single OpcMonitoredItem setup with the information specified. The kind of monitored item will when monitor events performed on the node identified by the values passed to this method.

Exceptions

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

SubscribeEvent(Guid, OpcAttribute, OpcEventReceivedEventHandler) ​

Subscribes events on the attribute of the node specified by nodeId.

csharp
public OpcSubscription SubscribeEvent(
    Guid nodeId,
    OpcAttribute attribute,
    OpcEventReceivedEventHandler received)
vbnet
Public Function SubscribeEvent(
    nodeId As Guid,
    attribute As OpcAttribute,
    received As OpcEventReceivedEventHandler) 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.
receivedOpcEventReceivedEventHandlerThe OpcEventReceivedEventHandler method to assign as the event handler of the EventReceived event or a null reference (Nothing in Visual Basic) if there no event handler is to be assigned first.

Returns

OpcSubscription

A new instance of the OpcSubscription class with a single OpcMonitoredItem setup with the information specified. The kind of monitored item will when monitor events performed on the node identified by the values passed to this method.

Exceptions

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

SubscribeEvent(int, OpcAttribute, OpcEventReceivedEventHandler) ​

Subscribes events on the attribute of the node specified by nodeId.

csharp
public OpcSubscription SubscribeEvent(
    int nodeId,
    OpcAttribute attribute,
    OpcEventReceivedEventHandler received)
vbnet
Public Function SubscribeEvent(
    nodeId As Integer,
    attribute As OpcAttribute,
    received As OpcEventReceivedEventHandler) 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.
receivedOpcEventReceivedEventHandlerThe OpcEventReceivedEventHandler method to assign as the event handler of the EventReceived event or a null reference (Nothing in Visual Basic) if there no event handler is to be assigned first.

Returns

OpcSubscription

A new instance of the OpcSubscription class with a single OpcMonitoredItem setup with the information specified. The kind of monitored item will when monitor events performed on the node identified by the values passed to this method.

Exceptions

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

SubscribeEvent(uint, OpcAttribute, OpcEventReceivedEventHandler) ​

Subscribes events on the attribute of the node specified by nodeId.

csharp
public OpcSubscription SubscribeEvent(
    uint nodeId,
    OpcAttribute attribute,
    OpcEventReceivedEventHandler received)
vbnet
Public Function SubscribeEvent(
    nodeId As UInteger,
    attribute As OpcAttribute,
    received As OpcEventReceivedEventHandler) 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.
receivedOpcEventReceivedEventHandlerThe OpcEventReceivedEventHandler method to assign as the event handler of the EventReceived event or a null reference (Nothing in Visual Basic) if there no event handler is to be assigned first.

Returns

OpcSubscription

A new instance of the OpcSubscription class with a single OpcMonitoredItem setup with the information specified. The kind of monitored item will when monitor events performed on the node identified by the values passed to this method.

Exceptions

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

SubscribeEvent(string, OpcAttribute, OpcEventReceivedEventHandler) ​

Subscribes events on the attribute of the node specified by nodeId.

csharp
public OpcSubscription SubscribeEvent(
    string nodeId,
    OpcAttribute attribute,
    OpcEventReceivedEventHandler received)
vbnet
Public Function SubscribeEvent(
    nodeId As String,
    attribute As OpcAttribute,
    received As OpcEventReceivedEventHandler) 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.
receivedOpcEventReceivedEventHandlerThe OpcEventReceivedEventHandler method to assign as the event handler of the EventReceived event or a null reference (Nothing in Visual Basic) if there no event handler is to be assigned first.

Returns

OpcSubscription

A new instance of the OpcSubscription class with a single OpcMonitoredItem setup with the information specified. The kind of monitored item will when monitor events performed on the node identified by the values passed to this method.

Exceptions

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

SubscribeEvent(byte[], int, OpcEventReceivedEventHandler) ​

Subscribes events on the node specified by nodeId and namespaceIndex specified.

csharp
public OpcSubscription SubscribeEvent(
    byte[] nodeId,
    int namespaceIndex,
    OpcEventReceivedEventHandler received)
vbnet
Public Function SubscribeEvent(
    nodeId As Byte(),
    namespaceIndex As Integer,
    received As OpcEventReceivedEventHandler) 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.
receivedOpcEventReceivedEventHandlerThe OpcEventReceivedEventHandler method to assign as the event handler of the EventReceived event or a null reference (Nothing in Visual Basic) if there no event handler is to be assigned first.

Returns

OpcSubscription

A new instance of the OpcSubscription class with a single OpcMonitoredItem setup with the information specified. The kind of monitored item will when monitor events performed on the node identified by the values passed to this method.

Exceptions

ExceptionCondition
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, BadIndexRangeInvalid, BadIndexRangeNoData, BadDataEncodingInvalid, BadDataEncodingUnsupported, BadMonitoredItemFilterInvalid, BadMonitoredItemFilterUnsupported, BadFilterNotAllowed, BadTooManySubscriptions and BadTooManyMonitoredItems.

SubscribeEvent(Guid, int, OpcEventReceivedEventHandler) ​

Subscribes events on the node specified by nodeId and namespaceIndex specified.

csharp
public OpcSubscription SubscribeEvent(
    Guid nodeId,
    int namespaceIndex,
    OpcEventReceivedEventHandler received)
vbnet
Public Function SubscribeEvent(
    nodeId As Guid,
    namespaceIndex As Integer,
    received As OpcEventReceivedEventHandler) 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.
receivedOpcEventReceivedEventHandlerThe OpcEventReceivedEventHandler method to assign as the event handler of the EventReceived event or a null reference (Nothing in Visual Basic) if there no event handler is to be assigned first.

Returns

OpcSubscription

A new instance of the OpcSubscription class with a single OpcMonitoredItem setup with the information specified. The kind of monitored item will when monitor events performed on the node identified by the values passed to this method.

Exceptions

ExceptionCondition
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, BadIndexRangeInvalid, BadIndexRangeNoData, BadDataEncodingInvalid, BadDataEncodingUnsupported, BadMonitoredItemFilterInvalid, BadMonitoredItemFilterUnsupported, BadFilterNotAllowed, BadTooManySubscriptions and BadTooManyMonitoredItems.

SubscribeEvent(int, int, OpcEventReceivedEventHandler) ​

Subscribes events on the node specified by nodeId and namespaceIndex specified.

csharp
public OpcSubscription SubscribeEvent(
    int nodeId,
    int namespaceIndex,
    OpcEventReceivedEventHandler received)
vbnet
Public Function SubscribeEvent(
    nodeId As Integer,
    namespaceIndex As Integer,
    received As OpcEventReceivedEventHandler) 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.
receivedOpcEventReceivedEventHandlerThe OpcEventReceivedEventHandler method to assign as the event handler of the EventReceived event or a null reference (Nothing in Visual Basic) if there no event handler is to be assigned first.

Returns

OpcSubscription

A new instance of the OpcSubscription class with a single OpcMonitoredItem setup with the information specified. The kind of monitored item will when monitor events performed on the node identified by the values passed to this method.

Exceptions

ExceptionCondition
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, BadIndexRangeInvalid, BadIndexRangeNoData, BadDataEncodingInvalid, BadDataEncodingUnsupported, BadMonitoredItemFilterInvalid, BadMonitoredItemFilterUnsupported, BadFilterNotAllowed, BadTooManySubscriptions and BadTooManyMonitoredItems.

SubscribeEvent(uint, int, OpcEventReceivedEventHandler) ​

Subscribes events on the node specified by nodeId and namespaceIndex specified.

csharp
public OpcSubscription SubscribeEvent(
    uint nodeId,
    int namespaceIndex,
    OpcEventReceivedEventHandler received)
vbnet
Public Function SubscribeEvent(
    nodeId As UInteger,
    namespaceIndex As Integer,
    received As OpcEventReceivedEventHandler) 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.
receivedOpcEventReceivedEventHandlerThe OpcEventReceivedEventHandler method to assign as the event handler of the EventReceived event or a null reference (Nothing in Visual Basic) if there no event handler is to be assigned first.

Returns

OpcSubscription

A new instance of the OpcSubscription class with a single OpcMonitoredItem setup with the information specified. The kind of monitored item will when monitor events performed on the node identified by the values passed to this method.

Exceptions

ExceptionCondition
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, BadIndexRangeInvalid, BadIndexRangeNoData, BadDataEncodingInvalid, BadDataEncodingUnsupported, BadMonitoredItemFilterInvalid, BadMonitoredItemFilterUnsupported, BadFilterNotAllowed, BadTooManySubscriptions and BadTooManyMonitoredItems.

SubscribeEvent(string, int, OpcEventReceivedEventHandler) ​

Subscribes events on the node specified by nodeId and namespaceIndex specified.

csharp
public OpcSubscription SubscribeEvent(
    string nodeId,
    int namespaceIndex,
    OpcEventReceivedEventHandler received)
vbnet
Public Function SubscribeEvent(
    nodeId As String,
    namespaceIndex As Integer,
    received As OpcEventReceivedEventHandler) 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.
receivedOpcEventReceivedEventHandlerThe OpcEventReceivedEventHandler method to assign as the event handler of the EventReceived event or a null reference (Nothing in Visual Basic) if there no event handler is to be assigned first.

Returns

OpcSubscription

A new instance of the OpcSubscription class with a single OpcMonitoredItem setup with the information specified. The kind of monitored item will when monitor events performed on the node identified by the values passed to this method.

Exceptions

ExceptionCondition
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, BadIndexRangeInvalid, BadIndexRangeNoData, BadDataEncodingInvalid, BadDataEncodingUnsupported, BadMonitoredItemFilterInvalid, BadMonitoredItemFilterUnsupported, BadFilterNotAllowed, BadTooManySubscriptions and BadTooManyMonitoredItems.

SubscribeEvent(byte[], int, OpcAttribute, OpcEventReceivedEventHandler) ​

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

csharp
public OpcSubscription SubscribeEvent(
    byte[] nodeId,
    int namespaceIndex,
    OpcAttribute attribute,
    OpcEventReceivedEventHandler received)
vbnet
Public Function SubscribeEvent(
    nodeId As Byte(),
    namespaceIndex As Integer,
    attribute As OpcAttribute,
    received As OpcEventReceivedEventHandler) 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.
receivedOpcEventReceivedEventHandlerThe OpcEventReceivedEventHandler method to assign as the event handler of the EventReceived event or a null reference (Nothing in Visual Basic) if there no event handler is to be assigned first.

Returns

OpcSubscription

A new instance of the OpcSubscription class with a single OpcMonitoredItem setup with the information specified. The kind of monitored item will when monitor events performed on the node identified by the values passed to this method.

Exceptions

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

SubscribeEvent(Guid, int, OpcAttribute, OpcEventReceivedEventHandler) ​

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

csharp
public OpcSubscription SubscribeEvent(
    Guid nodeId,
    int namespaceIndex,
    OpcAttribute attribute,
    OpcEventReceivedEventHandler received)
vbnet
Public Function SubscribeEvent(
    nodeId As Guid,
    namespaceIndex As Integer,
    attribute As OpcAttribute,
    received As OpcEventReceivedEventHandler) 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.
receivedOpcEventReceivedEventHandlerThe OpcEventReceivedEventHandler method to assign as the event handler of the EventReceived event or a null reference (Nothing in Visual Basic) if there no event handler is to be assigned first.

Returns

OpcSubscription

A new instance of the OpcSubscription class with a single OpcMonitoredItem setup with the information specified. The kind of monitored item will when monitor events performed on the node identified by the values passed to this method.

Exceptions

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

SubscribeEvent(int, int, OpcAttribute, OpcEventReceivedEventHandler) ​

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

csharp
public OpcSubscription SubscribeEvent(
    int nodeId,
    int namespaceIndex,
    OpcAttribute attribute,
    OpcEventReceivedEventHandler received)
vbnet
Public Function SubscribeEvent(
    nodeId As Integer,
    namespaceIndex As Integer,
    attribute As OpcAttribute,
    received As OpcEventReceivedEventHandler) 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.
receivedOpcEventReceivedEventHandlerThe OpcEventReceivedEventHandler method to assign as the event handler of the EventReceived event or a null reference (Nothing in Visual Basic) if there no event handler is to be assigned first.

Returns

OpcSubscription

A new instance of the OpcSubscription class with a single OpcMonitoredItem setup with the information specified. The kind of monitored item will when monitor events performed on the node identified by the values passed to this method.

Exceptions

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

SubscribeEvent(uint, int, OpcAttribute, OpcEventReceivedEventHandler) ​

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

csharp
public OpcSubscription SubscribeEvent(
    uint nodeId,
    int namespaceIndex,
    OpcAttribute attribute,
    OpcEventReceivedEventHandler received)
vbnet
Public Function SubscribeEvent(
    nodeId As UInteger,
    namespaceIndex As Integer,
    attribute As OpcAttribute,
    received As OpcEventReceivedEventHandler) 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.
receivedOpcEventReceivedEventHandlerThe OpcEventReceivedEventHandler method to assign as the event handler of the EventReceived event or a null reference (Nothing in Visual Basic) if there no event handler is to be assigned first.

Returns

OpcSubscription

A new instance of the OpcSubscription class with a single OpcMonitoredItem setup with the information specified. The kind of monitored item will when monitor events performed on the node identified by the values passed to this method.

Exceptions

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

SubscribeEvent(string, int, OpcAttribute, OpcEventReceivedEventHandler) ​

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

csharp
public OpcSubscription SubscribeEvent(
    string nodeId,
    int namespaceIndex,
    OpcAttribute attribute,
    OpcEventReceivedEventHandler received)
vbnet
Public Function SubscribeEvent(
    nodeId As String,
    namespaceIndex As Integer,
    attribute As OpcAttribute,
    received As OpcEventReceivedEventHandler) 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.
receivedOpcEventReceivedEventHandlerThe OpcEventReceivedEventHandler method to assign as the event handler of the EventReceived event or a null reference (Nothing in Visual Basic) if there no event handler is to be assigned first.

Returns

OpcSubscription

A new instance of the OpcSubscription class with a single OpcMonitoredItem setup with the information specified. The kind of monitored item will when monitor events performed on the node identified by the values passed to this method.

Exceptions

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

SubscribeEvent(byte[], OpcEventFilter, OpcEventReceivedEventHandler) ​

Subscribes events on the node specified by nodeId.

csharp
public OpcSubscription SubscribeEvent(
    byte[] nodeId,
    OpcEventFilter filter,
    OpcEventReceivedEventHandler received)
vbnet
Public Function SubscribeEvent(
    nodeId As Byte(),
    filter As OpcEventFilter,
    received As OpcEventReceivedEventHandler) As OpcSubscription

Parameters

NameTypeDescription
nodeIdByte[]The opaque node identifier of the node to subscribe.
filterOpcEventFilterThe OpcEventFilter 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.
receivedOpcEventReceivedEventHandlerThe OpcEventReceivedEventHandler method to assign as the event handler of the EventReceived event or a null reference (Nothing in Visual Basic) if there no event handler is to be assigned first.

Returns

OpcSubscription

A new instance of the OpcSubscription class with a single OpcMonitoredItem setup with the information specified. The kind of monitored item will when monitor events performed on the node identified by the values passed to this method.

Exceptions

ExceptionCondition
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, BadIndexRangeInvalid, BadIndexRangeNoData, BadDataEncodingInvalid, BadDataEncodingUnsupported, BadMonitoredItemFilterInvalid, BadMonitoredItemFilterUnsupported, BadFilterNotAllowed, BadTooManySubscriptions and BadTooManyMonitoredItems.

SubscribeEvent(Guid, OpcEventFilter, OpcEventReceivedEventHandler) ​

Subscribes events on the node specified by nodeId.

csharp
public OpcSubscription SubscribeEvent(
    Guid nodeId,
    OpcEventFilter filter,
    OpcEventReceivedEventHandler received)
vbnet
Public Function SubscribeEvent(
    nodeId As Guid,
    filter As OpcEventFilter,
    received As OpcEventReceivedEventHandler) As OpcSubscription

Parameters

NameTypeDescription
nodeIdGuidThe general unique identifier (= GUID) of the node to subscribe.
filterOpcEventFilterThe OpcEventFilter 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.
receivedOpcEventReceivedEventHandlerThe OpcEventReceivedEventHandler method to assign as the event handler of the EventReceived event or a null reference (Nothing in Visual Basic) if there no event handler is to be assigned first.

Returns

OpcSubscription

A new instance of the OpcSubscription class with a single OpcMonitoredItem setup with the information specified. The kind of monitored item will when monitor events performed on the node identified by the values passed to this method.

Exceptions

ExceptionCondition
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, BadIndexRangeInvalid, BadIndexRangeNoData, BadDataEncodingInvalid, BadDataEncodingUnsupported, BadMonitoredItemFilterInvalid, BadMonitoredItemFilterUnsupported, BadFilterNotAllowed, BadTooManySubscriptions and BadTooManyMonitoredItems.

SubscribeEvent(int, OpcEventFilter, OpcEventReceivedEventHandler) ​

Subscribes events on the node specified by nodeId.

csharp
public OpcSubscription SubscribeEvent(
    int nodeId,
    OpcEventFilter filter,
    OpcEventReceivedEventHandler received)
vbnet
Public Function SubscribeEvent(
    nodeId As Integer,
    filter As OpcEventFilter,
    received As OpcEventReceivedEventHandler) As OpcSubscription

Parameters

NameTypeDescription
nodeIdInt32The numeric node identifier of the node to subscribe.
filterOpcEventFilterThe OpcEventFilter 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.
receivedOpcEventReceivedEventHandlerThe OpcEventReceivedEventHandler method to assign as the event handler of the EventReceived event or a null reference (Nothing in Visual Basic) if there no event handler is to be assigned first.

Returns

OpcSubscription

A new instance of the OpcSubscription class with a single OpcMonitoredItem setup with the information specified. The kind of monitored item will when monitor events performed on the node identified by the values passed to this method.

Exceptions

ExceptionCondition
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, BadIndexRangeInvalid, BadIndexRangeNoData, BadDataEncodingInvalid, BadDataEncodingUnsupported, BadMonitoredItemFilterInvalid, BadMonitoredItemFilterUnsupported, BadFilterNotAllowed, BadTooManySubscriptions and BadTooManyMonitoredItems.

SubscribeEvent(uint, OpcEventFilter, OpcEventReceivedEventHandler) ​

Subscribes events on the node specified by nodeId.

csharp
public OpcSubscription SubscribeEvent(
    uint nodeId,
    OpcEventFilter filter,
    OpcEventReceivedEventHandler received)
vbnet
Public Function SubscribeEvent(
    nodeId As UInteger,
    filter As OpcEventFilter,
    received As OpcEventReceivedEventHandler) As OpcSubscription

Parameters

NameTypeDescription
nodeIdUInt32The numeric node identifier of the node to subscribe.
filterOpcEventFilterThe OpcEventFilter 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.
receivedOpcEventReceivedEventHandlerThe OpcEventReceivedEventHandler method to assign as the event handler of the EventReceived event or a null reference (Nothing in Visual Basic) if there no event handler is to be assigned first.

Returns

OpcSubscription

A new instance of the OpcSubscription class with a single OpcMonitoredItem setup with the information specified. The kind of monitored item will when monitor events performed on the node identified by the values passed to this method.

Exceptions

ExceptionCondition
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, BadIndexRangeInvalid, BadIndexRangeNoData, BadDataEncodingInvalid, BadDataEncodingUnsupported, BadMonitoredItemFilterInvalid, BadMonitoredItemFilterUnsupported, BadFilterNotAllowed, BadTooManySubscriptions and BadTooManyMonitoredItems.

SubscribeEvent(string, OpcEventFilter, OpcEventReceivedEventHandler) ​

Subscribes events on the node specified by nodeId.

csharp
public OpcSubscription SubscribeEvent(
    string nodeId,
    OpcEventFilter filter,
    OpcEventReceivedEventHandler received)
vbnet
Public Function SubscribeEvent(
    nodeId As String,
    filter As OpcEventFilter,
    received As OpcEventReceivedEventHandler) As OpcSubscription

Parameters

NameTypeDescription
nodeIdStringThe textual node identifier of the node to subscribe.
filterOpcEventFilterThe OpcEventFilter 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.
receivedOpcEventReceivedEventHandlerThe OpcEventReceivedEventHandler method to assign as the event handler of the EventReceived event or a null reference (Nothing in Visual Basic) if there no event handler is to be assigned first.

Returns

OpcSubscription

A new instance of the OpcSubscription class with a single OpcMonitoredItem setup with the information specified. The kind of monitored item will when monitor events performed on the node identified by the values passed to this method.

Exceptions

ExceptionCondition
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, BadIndexRangeInvalid, BadIndexRangeNoData, BadDataEncodingInvalid, BadDataEncodingUnsupported, BadMonitoredItemFilterInvalid, BadMonitoredItemFilterUnsupported, BadFilterNotAllowed, BadTooManySubscriptions and BadTooManyMonitoredItems.

SubscribeEvent(byte[], int, OpcEventFilter, OpcEventReceivedEventHandler) ​

Subscribes events on the node specified by nodeId and namespaceIndex specified.

csharp
public OpcSubscription SubscribeEvent(
    byte[] nodeId,
    int namespaceIndex,
    OpcEventFilter filter,
    OpcEventReceivedEventHandler received)
vbnet
Public Function SubscribeEvent(
    nodeId As Byte(),
    namespaceIndex As Integer,
    filter As OpcEventFilter,
    received As OpcEventReceivedEventHandler) 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.
filterOpcEventFilterThe OpcEventFilter 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.
receivedOpcEventReceivedEventHandlerThe OpcEventReceivedEventHandler method to assign as the event handler of the EventReceived event or a null reference (Nothing in Visual Basic) if there no event handler is to be assigned first.

Returns

OpcSubscription

A new instance of the OpcSubscription class with a single OpcMonitoredItem setup with the information specified. The kind of monitored item will when monitor events performed on the node identified by the values passed to this method.

Exceptions

ExceptionCondition
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, BadIndexRangeInvalid, BadIndexRangeNoData, BadDataEncodingInvalid, BadDataEncodingUnsupported, BadMonitoredItemFilterInvalid, BadMonitoredItemFilterUnsupported, BadFilterNotAllowed, BadTooManySubscriptions and BadTooManyMonitoredItems.

SubscribeEvent(Guid, int, OpcEventFilter, OpcEventReceivedEventHandler) ​

Subscribes events on the node specified by nodeId and namespaceIndex specified.

csharp
public OpcSubscription SubscribeEvent(
    Guid nodeId,
    int namespaceIndex,
    OpcEventFilter filter,
    OpcEventReceivedEventHandler received)
vbnet
Public Function SubscribeEvent(
    nodeId As Guid,
    namespaceIndex As Integer,
    filter As OpcEventFilter,
    received As OpcEventReceivedEventHandler) 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.
filterOpcEventFilterThe OpcEventFilter 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.
receivedOpcEventReceivedEventHandlerThe OpcEventReceivedEventHandler method to assign as the event handler of the EventReceived event or a null reference (Nothing in Visual Basic) if there no event handler is to be assigned first.

Returns

OpcSubscription

A new instance of the OpcSubscription class with a single OpcMonitoredItem setup with the information specified. The kind of monitored item will when monitor events performed on the node identified by the values passed to this method.

Exceptions

ExceptionCondition
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, BadIndexRangeInvalid, BadIndexRangeNoData, BadDataEncodingInvalid, BadDataEncodingUnsupported, BadMonitoredItemFilterInvalid, BadMonitoredItemFilterUnsupported, BadFilterNotAllowed, BadTooManySubscriptions and BadTooManyMonitoredItems.

SubscribeEvent(int, int, OpcEventFilter, OpcEventReceivedEventHandler) ​

Subscribes events on the node specified by nodeId and namespaceIndex specified.

csharp
public OpcSubscription SubscribeEvent(
    int nodeId,
    int namespaceIndex,
    OpcEventFilter filter,
    OpcEventReceivedEventHandler received)
vbnet
Public Function SubscribeEvent(
    nodeId As Integer,
    namespaceIndex As Integer,
    filter As OpcEventFilter,
    received As OpcEventReceivedEventHandler) 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.
filterOpcEventFilterThe OpcEventFilter 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.
receivedOpcEventReceivedEventHandlerThe OpcEventReceivedEventHandler method to assign as the event handler of the EventReceived event or a null reference (Nothing in Visual Basic) if there no event handler is to be assigned first.

Returns

OpcSubscription

A new instance of the OpcSubscription class with a single OpcMonitoredItem setup with the information specified. The kind of monitored item will when monitor events performed on the node identified by the values passed to this method.

Exceptions

ExceptionCondition
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, BadIndexRangeInvalid, BadIndexRangeNoData, BadDataEncodingInvalid, BadDataEncodingUnsupported, BadMonitoredItemFilterInvalid, BadMonitoredItemFilterUnsupported, BadFilterNotAllowed, BadTooManySubscriptions and BadTooManyMonitoredItems.

SubscribeEvent(uint, int, OpcEventFilter, OpcEventReceivedEventHandler) ​

Subscribes events on the node specified by nodeId and namespaceIndex specified.

csharp
public OpcSubscription SubscribeEvent(
    uint nodeId,
    int namespaceIndex,
    OpcEventFilter filter,
    OpcEventReceivedEventHandler received)
vbnet
Public Function SubscribeEvent(
    nodeId As UInteger,
    namespaceIndex As Integer,
    filter As OpcEventFilter,
    received As OpcEventReceivedEventHandler) 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.
filterOpcEventFilterThe OpcEventFilter 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.
receivedOpcEventReceivedEventHandlerThe OpcEventReceivedEventHandler method to assign as the event handler of the EventReceived event or a null reference (Nothing in Visual Basic) if there no event handler is to be assigned first.

Returns

OpcSubscription

A new instance of the OpcSubscription class with a single OpcMonitoredItem setup with the information specified. The kind of monitored item will when monitor events performed on the node identified by the values passed to this method.

Exceptions

ExceptionCondition
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, BadIndexRangeInvalid, BadIndexRangeNoData, BadDataEncodingInvalid, BadDataEncodingUnsupported, BadMonitoredItemFilterInvalid, BadMonitoredItemFilterUnsupported, BadFilterNotAllowed, BadTooManySubscriptions and BadTooManyMonitoredItems.

SubscribeEvent(string, int, OpcEventFilter, OpcEventReceivedEventHandler) ​

Subscribes events on the node specified by nodeId and namespaceIndex specified.

csharp
public OpcSubscription SubscribeEvent(
    string nodeId,
    int namespaceIndex,
    OpcEventFilter filter,
    OpcEventReceivedEventHandler received)
vbnet
Public Function SubscribeEvent(
    nodeId As String,
    namespaceIndex As Integer,
    filter As OpcEventFilter,
    received As OpcEventReceivedEventHandler) 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.
filterOpcEventFilterThe OpcEventFilter 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.
receivedOpcEventReceivedEventHandlerThe OpcEventReceivedEventHandler method to assign as the event handler of the EventReceived event or a null reference (Nothing in Visual Basic) if there no event handler is to be assigned first.

Returns

OpcSubscription

A new instance of the OpcSubscription class with a single OpcMonitoredItem setup with the information specified. The kind of monitored item will when monitor events performed on the node identified by the values passed to this method.

Exceptions

ExceptionCondition
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, BadIndexRangeInvalid, BadIndexRangeNoData, BadDataEncodingInvalid, BadDataEncodingUnsupported, BadMonitoredItemFilterInvalid, BadMonitoredItemFilterUnsupported, BadFilterNotAllowed, BadTooManySubscriptions and BadTooManyMonitoredItems.

SubscribeEvent(byte[], OpcAttribute, OpcEventFilter, OpcEventReceivedEventHandler) ​

Subscribes events on the attribute of the node specified by nodeId.

csharp
public OpcSubscription SubscribeEvent(
    byte[] nodeId,
    OpcAttribute attribute,
    OpcEventFilter filter,
    OpcEventReceivedEventHandler received)
vbnet
Public Function SubscribeEvent(
    nodeId As Byte(),
    attribute As OpcAttribute,
    filter As OpcEventFilter,
    received As OpcEventReceivedEventHandler) 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.
filterOpcEventFilterThe OpcEventFilter 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.
receivedOpcEventReceivedEventHandlerThe OpcEventReceivedEventHandler method to assign as the event handler of the EventReceived event or a null reference (Nothing in Visual Basic) if there no event handler is to be assigned first.

Returns

OpcSubscription

A new instance of the OpcSubscription class with a single OpcMonitoredItem setup with the information specified. The kind of monitored item will when monitor events performed on the node identified by the values passed to this method.

Exceptions

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

SubscribeEvent(Guid, OpcAttribute, OpcEventFilter, OpcEventReceivedEventHandler) ​

Subscribes events on the attribute of the node specified by nodeId.

csharp
public OpcSubscription SubscribeEvent(
    Guid nodeId,
    OpcAttribute attribute,
    OpcEventFilter filter,
    OpcEventReceivedEventHandler received)
vbnet
Public Function SubscribeEvent(
    nodeId As Guid,
    attribute As OpcAttribute,
    filter As OpcEventFilter,
    received As OpcEventReceivedEventHandler) 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.
filterOpcEventFilterThe OpcEventFilter 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.
receivedOpcEventReceivedEventHandlerThe OpcEventReceivedEventHandler method to assign as the event handler of the EventReceived event or a null reference (Nothing in Visual Basic) if there no event handler is to be assigned first.

Returns

OpcSubscription

A new instance of the OpcSubscription class with a single OpcMonitoredItem setup with the information specified. The kind of monitored item will when monitor events performed on the node identified by the values passed to this method.

Exceptions

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

SubscribeEvent(int, OpcAttribute, OpcEventFilter, OpcEventReceivedEventHandler) ​

Subscribes events on the attribute of the node specified by nodeId.

csharp
public OpcSubscription SubscribeEvent(
    int nodeId,
    OpcAttribute attribute,
    OpcEventFilter filter,
    OpcEventReceivedEventHandler received)
vbnet
Public Function SubscribeEvent(
    nodeId As Integer,
    attribute As OpcAttribute,
    filter As OpcEventFilter,
    received As OpcEventReceivedEventHandler) 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.
filterOpcEventFilterThe OpcEventFilter 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.
receivedOpcEventReceivedEventHandlerThe OpcEventReceivedEventHandler method to assign as the event handler of the EventReceived event or a null reference (Nothing in Visual Basic) if there no event handler is to be assigned first.

Returns

OpcSubscription

A new instance of the OpcSubscription class with a single OpcMonitoredItem setup with the information specified. The kind of monitored item will when monitor events performed on the node identified by the values passed to this method.

Exceptions

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

SubscribeEvent(uint, OpcAttribute, OpcEventFilter, OpcEventReceivedEventHandler) ​

Subscribes events on the attribute of the node specified by nodeId.

csharp
public OpcSubscription SubscribeEvent(
    uint nodeId,
    OpcAttribute attribute,
    OpcEventFilter filter,
    OpcEventReceivedEventHandler received)
vbnet
Public Function SubscribeEvent(
    nodeId As UInteger,
    attribute As OpcAttribute,
    filter As OpcEventFilter,
    received As OpcEventReceivedEventHandler) 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.
filterOpcEventFilterThe OpcEventFilter 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.
receivedOpcEventReceivedEventHandlerThe OpcEventReceivedEventHandler method to assign as the event handler of the EventReceived event or a null reference (Nothing in Visual Basic) if there no event handler is to be assigned first.

Returns

OpcSubscription

A new instance of the OpcSubscription class with a single OpcMonitoredItem setup with the information specified. The kind of monitored item will when monitor events performed on the node identified by the values passed to this method.

Exceptions

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

SubscribeEvent(string, OpcAttribute, OpcEventFilter, OpcEventReceivedEventHandler) ​

Subscribes events on the attribute of the node specified by nodeId.

csharp
public OpcSubscription SubscribeEvent(
    string nodeId,
    OpcAttribute attribute,
    OpcEventFilter filter,
    OpcEventReceivedEventHandler received)
vbnet
Public Function SubscribeEvent(
    nodeId As String,
    attribute As OpcAttribute,
    filter As OpcEventFilter,
    received As OpcEventReceivedEventHandler) 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.
filterOpcEventFilterThe OpcEventFilter 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.
receivedOpcEventReceivedEventHandlerThe OpcEventReceivedEventHandler method to assign as the event handler of the EventReceived event or a null reference (Nothing in Visual Basic) if there no event handler is to be assigned first.

Returns

OpcSubscription

A new instance of the OpcSubscription class with a single OpcMonitoredItem setup with the information specified. The kind of monitored item will when monitor events performed on the node identified by the values passed to this method.

Exceptions

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

SubscribeEvent(byte[], int, OpcAttribute, OpcEventFilter, OpcEventReceivedEventHandler) ​

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

csharp
public OpcSubscription SubscribeEvent(
    byte[] nodeId,
    int namespaceIndex,
    OpcAttribute attribute,
    OpcEventFilter filter,
    OpcEventReceivedEventHandler received)
vbnet
Public Function SubscribeEvent(
    nodeId As Byte(),
    namespaceIndex As Integer,
    attribute As OpcAttribute,
    filter As OpcEventFilter,
    received As OpcEventReceivedEventHandler) 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.
filterOpcEventFilterThe OpcEventFilter 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.
receivedOpcEventReceivedEventHandlerThe OpcEventReceivedEventHandler method to assign as the event handler of the EventReceived event or a null reference (Nothing in Visual Basic) if there no event handler is to be assigned first.

Returns

OpcSubscription

A new instance of the OpcSubscription class with a single OpcMonitoredItem setup with the information specified. The kind of monitored item will when monitor events performed on the node identified by the values passed to this method.

Exceptions

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

SubscribeEvent(Guid, int, OpcAttribute, OpcEventFilter, OpcEventReceivedEventHandler) ​

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

csharp
public OpcSubscription SubscribeEvent(
    Guid nodeId,
    int namespaceIndex,
    OpcAttribute attribute,
    OpcEventFilter filter,
    OpcEventReceivedEventHandler received)
vbnet
Public Function SubscribeEvent(
    nodeId As Guid,
    namespaceIndex As Integer,
    attribute As OpcAttribute,
    filter As OpcEventFilter,
    received As OpcEventReceivedEventHandler) 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.
filterOpcEventFilterThe OpcEventFilter 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.
receivedOpcEventReceivedEventHandlerThe OpcEventReceivedEventHandler method to assign as the event handler of the EventReceived event or a null reference (Nothing in Visual Basic) if there no event handler is to be assigned first.

Returns

OpcSubscription

A new instance of the OpcSubscription class with a single OpcMonitoredItem setup with the information specified. The kind of monitored item will when monitor events performed on the node identified by the values passed to this method.

Exceptions

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

SubscribeEvent(int, int, OpcAttribute, OpcEventFilter, OpcEventReceivedEventHandler) ​

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

csharp
public OpcSubscription SubscribeEvent(
    int nodeId,
    int namespaceIndex,
    OpcAttribute attribute,
    OpcEventFilter filter,
    OpcEventReceivedEventHandler received)
vbnet
Public Function SubscribeEvent(
    nodeId As Integer,
    namespaceIndex As Integer,
    attribute As OpcAttribute,
    filter As OpcEventFilter,
    received As OpcEventReceivedEventHandler) 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.
filterOpcEventFilterThe OpcEventFilter 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.
receivedOpcEventReceivedEventHandlerThe OpcEventReceivedEventHandler method to assign as the event handler of the EventReceived event or a null reference (Nothing in Visual Basic) if there no event handler is to be assigned first.

Returns

OpcSubscription

A new instance of the OpcSubscription class with a single OpcMonitoredItem setup with the information specified. The kind of monitored item will when monitor events performed on the node identified by the values passed to this method.

Exceptions

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

SubscribeEvent(uint, int, OpcAttribute, OpcEventFilter, OpcEventReceivedEventHandler) ​

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

csharp
public OpcSubscription SubscribeEvent(
    uint nodeId,
    int namespaceIndex,
    OpcAttribute attribute,
    OpcEventFilter filter,
    OpcEventReceivedEventHandler received)
vbnet
Public Function SubscribeEvent(
    nodeId As UInteger,
    namespaceIndex As Integer,
    attribute As OpcAttribute,
    filter As OpcEventFilter,
    received As OpcEventReceivedEventHandler) 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.
filterOpcEventFilterThe OpcEventFilter 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.
receivedOpcEventReceivedEventHandlerThe OpcEventReceivedEventHandler method to assign as the event handler of the EventReceived event or a null reference (Nothing in Visual Basic) if there no event handler is to be assigned first.

Returns

OpcSubscription

A new instance of the OpcSubscription class with a single OpcMonitoredItem setup with the information specified. The kind of monitored item will when monitor events performed on the node identified by the values passed to this method.

Exceptions

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

SubscribeEvent(string, int, OpcAttribute, OpcEventFilter, OpcEventReceivedEventHandler) ​

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

csharp
public OpcSubscription SubscribeEvent(
    string nodeId,
    int namespaceIndex,
    OpcAttribute attribute,
    OpcEventFilter filter,
    OpcEventReceivedEventHandler received)
vbnet
Public Function SubscribeEvent(
    nodeId As String,
    namespaceIndex As Integer,
    attribute As OpcAttribute,
    filter As OpcEventFilter,
    received As OpcEventReceivedEventHandler) 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.
filterOpcEventFilterThe OpcEventFilter 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.
receivedOpcEventReceivedEventHandlerThe OpcEventReceivedEventHandler method to assign as the event handler of the EventReceived event or a null reference (Nothing in Visual Basic) if there no event handler is to be assigned first.

Returns

OpcSubscription

A new instance of the OpcSubscription class with a single OpcMonitoredItem setup with the information specified. The kind of monitored item will when monitor events performed on the node identified by the values passed to this method.

Exceptions

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

SubscribeEvent(OpcNodeId, OpcEventReceivedEventHandler) ​

Subscribes events on the node specified by nodeId.

csharp
public OpcSubscription SubscribeEvent(
    OpcNodeId nodeId,
    OpcEventReceivedEventHandler received)
vbnet
Public Function SubscribeEvent(
    nodeId As OpcNodeId,
    received As OpcEventReceivedEventHandler) As OpcSubscription

Parameters

NameTypeDescription
nodeIdOpcNodeIdThe OpcNodeId of the node on which the service, who will execute this command.
receivedOpcEventReceivedEventHandlerThe OpcEventReceivedEventHandler method to assign as the event handler of the EventReceived event or a null reference (Nothing in Visual Basic) if there no event handler is to be assigned first.

Returns

OpcSubscription

A new instance of the OpcSubscription class with a single OpcMonitoredItem setup with the information specified. The kind of monitored item will when monitor events performed on the node identified by the values passed to this method.

Exceptions

ExceptionCondition
ArgumentNullExceptionThe nodeId is a null reference (Nothing in Visual Basic).
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, BadIndexRangeInvalid, BadIndexRangeNoData, BadDataEncodingInvalid, BadDataEncodingUnsupported, BadMonitoredItemFilterInvalid, BadMonitoredItemFilterUnsupported, BadFilterNotAllowed, BadTooManySubscriptions and BadTooManyMonitoredItems.

SubscribeEvent(OpcNodeId, OpcAttribute, OpcEventReceivedEventHandler) ​

Subscribes events on the attribute of the node specified by nodeId.

csharp
public OpcSubscription SubscribeEvent(
    OpcNodeId nodeId,
    OpcAttribute attribute,
    OpcEventReceivedEventHandler received)
vbnet
Public Function SubscribeEvent(
    nodeId As OpcNodeId,
    attribute As OpcAttribute,
    received As OpcEventReceivedEventHandler) 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.
receivedOpcEventReceivedEventHandlerThe OpcEventReceivedEventHandler method to assign as the event handler of the EventReceived event or a null reference (Nothing in Visual Basic) if there no event handler is to be assigned first.

Returns

OpcSubscription

A new instance of the OpcSubscription class with a single OpcMonitoredItem setup with the information specified. The kind of monitored item will when monitor events performed on the node identified by the values passed to this method.

Exceptions

ExceptionCondition
ArgumentNullExceptionThe nodeId is a null reference (Nothing in Visual Basic).
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.

SubscribeEvent(OpcNodeId, OpcEventFilter, OpcEventReceivedEventHandler) ​

Subscribes events on the node specified by nodeId.

csharp
public OpcSubscription SubscribeEvent(
    OpcNodeId nodeId,
    OpcEventFilter filter,
    OpcEventReceivedEventHandler received)
vbnet
Public Function SubscribeEvent(
    nodeId As OpcNodeId,
    filter As OpcEventFilter,
    received As OpcEventReceivedEventHandler) As OpcSubscription

Parameters

NameTypeDescription
nodeIdOpcNodeIdThe OpcNodeId of the node on which the service, who will execute this command.
filterOpcEventFilterThe OpcEventFilter 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.
receivedOpcEventReceivedEventHandlerThe OpcEventReceivedEventHandler method to assign as the event handler of the EventReceived event or a null reference (Nothing in Visual Basic) if there no event handler is to be assigned first.

Returns

OpcSubscription

A new instance of the OpcSubscription class with a single OpcMonitoredItem setup with the information specified. The kind of monitored item will when monitor events performed on the node identified by the values passed to this method.

Exceptions

ExceptionCondition
ArgumentNullExceptionThe nodeId is a null reference (Nothing in Visual Basic).
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, BadIndexRangeInvalid, BadIndexRangeNoData, BadDataEncodingInvalid, BadDataEncodingUnsupported, BadMonitoredItemFilterInvalid, BadMonitoredItemFilterUnsupported, BadFilterNotAllowed, BadTooManySubscriptions and BadTooManyMonitoredItems.

SubscribeEvent(OpcNodeId, OpcAttribute, OpcEventFilter, OpcEventReceivedEventHandler) ​

Subscribes events on the attribute of the node specified by nodeId.

csharp
public OpcSubscription SubscribeEvent(
    OpcNodeId nodeId,
    OpcAttribute attribute,
    OpcEventFilter filter,
    OpcEventReceivedEventHandler received)
vbnet
Public Function SubscribeEvent(
    nodeId As OpcNodeId,
    attribute As OpcAttribute,
    filter As OpcEventFilter,
    received As OpcEventReceivedEventHandler) 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.
filterOpcEventFilterThe OpcEventFilter 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.
receivedOpcEventReceivedEventHandlerThe OpcEventReceivedEventHandler method to assign as the event handler of the EventReceived event or a null reference (Nothing in Visual Basic) if there no event handler is to be assigned first.

Returns

OpcSubscription

A new instance of the OpcSubscription class with a single OpcMonitoredItem setup with the information specified. The kind of monitored item will when monitor events performed on the node identified by the values passed to this method.

Exceptions

ExceptionCondition
ArgumentNullExceptionThe nodeId is a null reference (Nothing in Visual Basic).
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.