Skip to content

Reference

OpcClient.AddNode Method

Adds a new node into the address space hierarchy using the command specified.

Reference

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

since v2.7

Adds a new node into the address space hierarchy using the command specified.

csharp
public OpcAddNodeResult AddNode(OpcAddNode command)
vbnet
Public Function AddNode(command As OpcAddNode) As OpcAddNodeResult

Parameters

NameTypeDescription
commandOpcAddNodeThe OpcAddNode instance to process.

Returns

OpcAddNodeResult

An instance of the OpcAddNodeResult class which contains the node identifier used or created for the node added through the command specified; together with information about the outcome of the processed command.

Exceptions

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

Remarks

Known results for the command specified are:

StatusDescription
BadParentNodeIdInvalidThe parent node id does not refer to a valid node.
BadReferenceTypeIdInvalidFor more details see BadReferenceTypeIdInvalid.
BadReferenceNotAllowedThe reference could not be created because it violates constraints imposed by the data model.
BadNodeIdRejectedThe requested node id is already used by another node.
BadNodeClassInvalidFor more details see BadNodeClassInvalid.
BadBrowseNameInvalidFor more details see BadBrowseNameInvalid.
BadBrowseNameDuplicatedThe browse name is not unique among nodes that share the same relationship with the parent.
BadNodeAttributesInvalidThe node attributes are not valid for the node class.
BadTypeDefinitionInvalidFor more details see BadTypeDefinitionInvalid.
BadUserAccessDeniedFor more details see BadUserAccessDenied.