IOpcAddNodesService Members

Namespace: Opc.UaFx.Services
Assemblies: Opc.UaFx.Advanced.dll, Opc.UaFx.Advanced.dll
The IOpcAddNodesService interface defines the following members.

AddNodes(IEnumerable<OpcAddNode>)

Adds one or more nodes into the address space hierarchy using the commands specified.

C#

OpcAddNodeResultCollection AddNodes(IEnumerable<OpcAddNode> commands)


Parameters

commands IEnumerable<OpcAddNode>

A sequence of OpcAddNode instances to process.


Returns

OpcAddNodeResultCollection

An instance of the OpcAddNodeResultCollection class which contains the node identifiers used or created for the nodes added through the commands specified; together with information about the outcome of each processed command.



Exceptions

ArgumentNullException

The commands sequence or one of its items is a null reference (Nothing in Visual Basic).

InvalidOperationException

The add node service is currently not supported, especially using the commands specified.

OpcException

The 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 commands specified are:

Status Description
BadParentNodeIdInvalid The parent node id does not refer to a valid node.
BadReferenceTypeIdInvalid For more details see BadReferenceTypeIdInvalid.
BadReferenceNotAllowed The reference could not be created because it violates constraints imposed by the data model.
BadNodeIdRejected The requested node id is already used by another node.
BadNodeClassInvalid For more details see BadNodeClassInvalid.
BadBrowseNameInvalid For more details see BadBrowseNameInvalid.
BadBrowseNameDuplicated The browse name is not unique among nodes that share the same relationship with the parent.
BadNodeAttributesInvalid The node attributes are not valid for the node class.
BadTypeDefinitionInvalid For more details see BadTypeDefinitionInvalid.
BadUserAccessDenied For more details see BadUserAccessDenied.

AddNodes(OpcAddNode[])

Adds one or more nodes into the address space hierarchy using the commands specified.

C#

OpcAddNodeResultCollection AddNodes(params OpcAddNode[] commands)


Parameters

commands OpcAddNode[]

An array of OpcAddNode instances to process.


Returns

OpcAddNodeResultCollection

An instance of the OpcAddNodeResultCollection class which contains the node identifiers used or created for the nodes added through the commands specified; together with information about the outcome of each processed command.



Exceptions

ArgumentNullException

The commands sequence or one of its items is a null reference (Nothing in Visual Basic).

InvalidOperationException

The add node service is currently not supported, especially using the commands specified.

OpcException

The 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 commands specified are:

Status Description
BadParentNodeIdInvalid The parent node id does not refer to a valid node.
BadReferenceTypeIdInvalid For more details see BadReferenceTypeIdInvalid.
BadReferenceNotAllowed The reference could not be created because it violates constraints imposed by the data model.
BadNodeIdRejected The requested node id is already used by another node.
BadNodeClassInvalid For more details see BadNodeClassInvalid.
BadBrowseNameInvalid For more details see BadBrowseNameInvalid.
BadBrowseNameDuplicated The browse name is not unique among nodes that share the same relationship with the parent.
BadNodeAttributesInvalid The node attributes are not valid for the node class.
BadTypeDefinitionInvalid For more details see BadTypeDefinitionInvalid.
BadUserAccessDenied For more details see BadUserAccessDenied.