Reference
OpcClient.SubscribeNodes Method
Creates a OpcSubscription using the OpcMonitoredItem setup defined by the commands specified.
Reference
OpcClient.SubscribeNodes Method
- Type
- OpcClient
- Namespace
- Opc.UaFx.Client
- Assembly
- Opc.UaFx.Advanced.dll
- Package
- Opc.UaFx.Advanced v2.59.0
- Members
- OpcClient Members
- Also in
- Opc.UaFx.Client
| Overload | Description |
|---|---|
| SubscribeNodes( | Creates a OpcSubscription using the OpcMonitoredItem setup defined by the commands specified. |
| SubscribeNodes( | Creates a OpcSubscription using the OpcMonitoredItem setup defined by the commands specified. |
Exceptions (all overloads)
| Exception | Condition |
|---|---|
| Invalid | The subscription service is currently not supported, especially using the arguments specified. |
| Object | The object has been disposed of. |
| OpcException | The service execution failed upon different circumstances; for more details see exception details. The following issues can lead to that exception: BadNothingToDo, Bad |
SubscribeNodes(IEnumerable<OpcSubscribeNode>)
Creates a OpcSubscription using the OpcMonitoredItem setup defined by the commands specified.
public OpcSubscription SubscribeNodes(IEnumerable<OpcSubscribeNode> commands)Public Function SubscribeNodes(
commands As IEnumerable(Of OpcSubscribeNode)) As OpcSubscriptionParameters
| Name | Type | Description |
|---|---|---|
commands | IEnumerable<OpcSubscribeNode> | A sequence of OpcSubscribeNode commands which are used to define the OpcMonitoredItem's used by the OpcSubscription created. |
Returns
A new instance of the OpcSubscription class with OpcMonitoredItem's setup with the information specified. The kind of monitored item and how it is used by the subscription depends on the number, type and values passed to the different OpcSubscribeNode commands.
Exceptions
| Exception | Condition |
|---|---|
| Argument | The commands or one of the items in the sequence is a null reference ( |
| LicenseException | The license is expired. |
SubscribeNodes(params OpcSubscribeNode[])
Creates a OpcSubscription using the OpcMonitoredItem setup defined by the commands specified.
public OpcSubscription SubscribeNodes(params OpcSubscribeNode[] commands)Public Function SubscribeNodes(
ParamArray commands As OpcSubscribeNode()) As OpcSubscriptionParameters
| Name | Type | Description |
|---|---|---|
commands | params OpcSubscribeNode[] | An array of OpcSubscribeNode commands which are used to define the OpcMonitoredItem's used by the OpcSubscription created. |
Returns
A new instance of the OpcSubscription class with OpcMonitoredItem's setup with the information specified. The kind of monitored item and how it is used by the subscription depends on the number, type and values passed to the different OpcSubscribeNode commands.
Exceptions
| Exception | Condition |
|---|---|
| Argument | The commands or one of the items in the array is a null reference ( |

