Reference
OpcClient.AddReferences Method
Adds one or more references to existing nodes in the address space hierarchy using the commands specified.
Reference
OpcClient.AddReferences 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 |
|---|---|
| AddReferences( | Adds one or more references to existing nodes in the address space hierarchy using the commands specified. |
| AddReferences( | Adds one or more references to existing nodes in the address space hierarchy using the commands specified. |
Exceptions (all overloads)
| Exception | Condition |
|---|---|
| Argument | The commands sequence or one of its items is a null reference ( |
| Invalid | The add reference service is currently not supported, especially using the commands 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 and Bad |
AddReferences(IEnumerable<OpcAddReference>)
Adds one or more references to existing nodes in the address space hierarchy using the commands specified.
csharp
public OpcStatusCollection AddReferences(IEnumerable<OpcAddReference> commands)vbnet
Public Function AddReferences(
commands As IEnumerable(Of OpcAddReference)) As OpcStatusCollectionParameters
| Name | Type | Description |
|---|---|---|
commands | IEnumerable<OpcAddReference> | A sequence of OpcAddReference instances to process. |
Returns
An instance of the OpcStatusCollection class which contains the information about the outcome of each processed command.
Remarks
Known results for the commands specified are:
| Status | Description |
|---|---|
| Bad | For more details see Bad |
| Bad | For more details see Bad |
| Bad | For more details see Bad |
| Bad | For more details see Bad |
| Bad | For more details see Bad |
| Bad | The reference could not be created because it violates constraints imposed by the data model on this server. |
| Bad | The reference type is not valid for a reference to a remote server. |
| Bad | For more details see Bad |
| Bad | The reference type between the nodes is already defined. |
| Bad | The server does not allow this type of self reference on this node. |
AddReferences(params OpcAddReference[])
Adds one or more references to existing nodes in the address space hierarchy using the commands specified.
csharp
public OpcStatusCollection AddReferences(params OpcAddReference[] commands)vbnet
Public Function AddReferences(
ParamArray commands As OpcAddReference()) As OpcStatusCollectionParameters
| Name | Type | Description |
|---|---|---|
commands | params OpcAddReference[] | An array of OpcAddReference instances to process. |
Returns
An instance of the OpcStatusCollection class which contains the information about the outcome of each processed command.
Remarks
Known results for the commands specified are:
| Status | Description |
|---|---|
| Bad | For more details see Bad |
| Bad | For more details see Bad |
| Bad | For more details see Bad |
| Bad | For more details see Bad |
| Bad | For more details see Bad |
| Bad | The reference could not be created because it violates constraints imposed by the data model on this server. |
| Bad | The reference type is not valid for a reference to a remote server. |
| Bad | For more details see Bad |
| Bad | The reference type between the nodes is already defined. |
| Bad | The server does not allow this type of self reference on this node. |

