Skip to content

Reference

OpcClient.RegisterNode Method

Registers a node for optimized node access using the command specified.

Reference

OpcClient.RegisterNode Method ​

Type
OpcClient
Namespace
Opc.UaFx.Client
Assembly
Opc.UaFx.Advanced.dll
Package
Opc.UaFx.Advanced v2.59.0
Members
OpcClient Members
Also in
Opc.UaFx.Client

2 overloads · since v2.8

OverloadDescription
RegisterNode(OpcRegisterNode)since v2.8Registers a node for optimized node access using the command specified.
RegisterNode(OpcNodeId)since v2.8Registers a node for optimized node access using the identifier of the node.

Known results: BadNodeIdInvalid

Exceptions (all overloads)

ExceptionCondition
ObjectDisposedExceptionThe object has been disposed of.

RegisterNode(OpcRegisterNode) ​

since v2.8

Registers a node for optimized node access using the command specified.

csharp
public OpcNodeId RegisterNode(OpcRegisterNode command)
vbnet
Public Function RegisterNode(command As OpcRegisterNode) As OpcNodeId

Parameters

NameTypeDescription
commandOpcRegisterNodeThe OpcRegisterNode instance to process.

Returns

OpcNodeId

An instance of the OpcNodeId class which is to be used for subsequent optimized node access.

Exceptions

ExceptionCondition
ArgumentNullExceptionThe command is a null reference (Nothing in Visual Basic).
InvalidOperationExceptionThe register node service is currently not supported, especially using the command specified.
OpcExceptionThe service execution failed upon different circumstances; for more details see exception details. The following issues can lead to that exception: BadNothingToDo and BadTooManyMatches.

Remarks

Servers completely reject register nodes requests if any of the node identifiers passed are structurally invalid.

RegisterNode(OpcNodeId) ​

since v2.8

Registers a node for optimized node access using the identifier of the node. A once registered node needs to be unregistered as soon as the optimized node access is not longer required. This assures that the server can release unused resources reserved for the optimized node access.

csharp
public OpcNodeId RegisterNode(OpcNodeId nodeId)
vbnet
Public Function RegisterNode(nodeId As OpcNodeId) As OpcNodeId

Parameters

NameTypeDescription
nodeIdOpcNodeIdThe OpcNodeId through that the node to register can be identified.

Returns

OpcNodeId

An instance of the OpcNodeId class which is to be used for subsequent optimized node access. Use this identifier to release unused resources associated with the optimized node access using UnregisterNode as soon as the optimized node access is not longer required.

Exceptions

ExceptionCondition
ArgumentExceptionThe nodeId is equals Null.
ArgumentNullExceptionThe nodeId is a null reference (Nothing in Visual Basic).
InvalidOperationExceptionThe register node service is currently not supported, especially using the parameters specified.
OpcExceptionThe service execution failed upon different circumstances; for more details see exception details. The following issues can lead to that exception: BadNothingToDo and BadTooManyOperations.

Remarks

Servers completely reject register nodes requests if any of the node identifiers passed are structurally invalid.