IOpcAddReferencesService Members

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

AddReferences(IEnumerable<OpcAddReference>)

Adds one or more references to existing nodes in the address space hierarchy using the commands specified.

C#

OpcStatusCollection AddReferences(IEnumerable<OpcAddReference> commands)


Parameters

commands IEnumerable<OpcAddReference>

A sequence of OpcAddReference instances to process.


Returns

OpcStatusCollection

An instance of the OpcStatusCollection class which contains the 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 reference 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
BadSourceNodeIdInvalid For more details see BadSourceNodeIdInvalid.
BadReferenceTypeIdInvalid For more details see BadReferenceTypeIdInvalid.
BadServerUriInvalid For more details see BadServerUriInvalid.
BadTargetNodeIdInvalid For more details see BadTargetNodeIdInvalid.
BadNodeClassInvalid For more details see BadNodeClassInvalid.
BadReferenceNotAllowed The reference could not be created because it violates constraints imposed by the data model on this server.
BadReferenceLocalOnly The reference type is not valid for a reference to a remote server.
BadUserAccessDenied For more details see BadUserAccessDenied.
BadDuplicateReferenceNotAllowed The reference type between the nodes is already defined.
BadInvalidSelfReference The server does not allow this type of self reference on this node.

AddReferences(OpcAddReference[])

Adds one or more references to existing nodes in the address space hierarchy using the commands specified.

C#

OpcStatusCollection AddReferences(params OpcAddReference[] commands)


Parameters

commands OpcAddReference[]

An array of OpcAddReference instances to process.


Returns

OpcStatusCollection

An instance of the OpcStatusCollection class which contains the 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 reference 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
BadSourceNodeIdInvalid For more details see BadSourceNodeIdInvalid.
BadReferenceTypeIdInvalid For more details see BadReferenceTypeIdInvalid.
BadServerUriInvalid For more details see BadServerUriInvalid.
BadTargetNodeIdInvalid For more details see BadTargetNodeIdInvalid.
BadNodeClassInvalid For more details see BadNodeClassInvalid.
BadReferenceNotAllowed The reference could not be created because it violates constraints imposed by the data model on this server.
BadReferenceLocalOnly The reference type is not valid for a reference to a remote server.
BadUserAccessDenied For more details see BadUserAccessDenied.
BadDuplicateReferenceNotAllowed The reference type between the nodes is already defined.
BadInvalidSelfReference The server does not allow this type of self reference on this node.