Reference
IOpcAddNodesService Members
Defines a specialized IOpcService<TResponse, TRequest> which can be used to add one or more nodes into the address space hierarchy.
Reference
IOpcAddNodesService Members
- Type
- IOpcAddNodesService
- Namespace
- Opc.UaFx.Services
- Assembly
- Opc.UaFx.Advanced.dll
- Package
- Opc.UaFx.Advanced v2.59.0
- Also in
- Opc.UaFx.Client
Inherits members from IOpcService<OpcAddNodesResponse, OpcAddNodesRequest>.
Methods
AddNodes
| Overload | Description |
|---|---|
| AddNodes( | Adds one or more nodes into the address space hierarchy using the commands specified. |
| AddNodes( | Adds one or more nodes into 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 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 Bad |
AddNodes(IEnumerable<OpcAddNode>)
Adds one or more nodes into the address space hierarchy using the commands specified.
OpcAddNodeResultCollection AddNodes(IEnumerable<OpcAddNode> commands)Function AddNodes(
commands As IEnumerable(Of OpcAddNode)) As OpcAddNodeResultCollectionParameters
| Name | Type | Description |
|---|---|---|
commands | IEnumerable<OpcAddNode> | A sequence of OpcAddNode instances to process. |
Returns
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.
Remarks
Known results for the commands specified are:
| Status | Description |
|---|---|
| Bad | The parent node id does not refer to a valid node. |
| Bad | For more details see Bad |
| Bad | The reference could not be created because it violates constraints imposed by the data model. |
| Bad | The requested node id is already used by another node. |
| Bad | For more details see Bad |
| Bad | For more details see Bad |
| Bad | The browse name is not unique among nodes that share the same relationship with the parent. |
| Bad | The node attributes are not valid for the node class. |
| Bad | For more details see Bad |
| Bad | For more details see Bad |
AddNodes(params OpcAddNode[])
Adds one or more nodes into the address space hierarchy using the commands specified.
OpcAddNodeResultCollection AddNodes(params OpcAddNode[] commands)Function AddNodes(
ParamArray commands As OpcAddNode()) As OpcAddNodeResultCollectionParameters
| Name | Type | Description |
|---|---|---|
commands | params OpcAddNode[] | An array of OpcAddNode instances to process. |
Returns
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.
Remarks
Known results for the commands specified are:
| Status | Description |
|---|---|
| Bad | The parent node id does not refer to a valid node. |
| Bad | For more details see Bad |
| Bad | The reference could not be created because it violates constraints imposed by the data model. |
| Bad | The requested node id is already used by another node. |
| Bad | For more details see Bad |
| Bad | For more details see Bad |
| Bad | The browse name is not unique among nodes that share the same relationship with the parent. |
| Bad | The node attributes are not valid for the node class. |
| Bad | For more details see Bad |
| Bad | For more details see Bad |

