Reference
OpcClient.DeleteNode Method
Deletes a node from the address space hierarchy using the command specified.
Reference
OpcClient.DeleteNode 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 |
|---|---|
| DeleteNode( | Deletes a node from the address space hierarchy using the command specified. |
| DeleteNode( | Deletes a node from the address space hierarchy using the identifier of the node which shall be deleted including the references where the node acts as the source and as the target of the reference. |
| DeleteNode( | Deletes a node from the address space hierarchy using the identifier of the node which shall be deleted including the references where the node acts as the source and optionally (include) as the target of the reference. |
Exceptions (all overloads)
| Exception | Condition |
|---|---|
| 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 |
DeleteNode(OpcDeleteNode)
Deletes a node from the address space hierarchy using the command specified.
public OpcStatus DeleteNode(OpcDeleteNode command)Public Function DeleteNode(command As OpcDeleteNode) As OpcStatusParameters
| Name | Type | Description |
|---|---|---|
command | OpcDeleteNode | The OpcDeleteNode instance to process. |
Returns
An instance of the OpcStatus class which contains the information about the outcome of the processed command.
Exceptions
| Exception | Condition |
|---|---|
| Argument | The command is a null reference ( |
| Invalid | The add node service is currently not supported, especially using the command specified. |
Remarks
Known results for the command specified are:
| Status | Description |
|---|---|
| BadNodeIdInvalid | For more details see BadNodeIdInvalid. |
| BadNodeIdUnknown | For more details see BadNodeIdUnknown. |
| Bad | For more details see Bad |
| Bad | For more details see Bad |
| Uncertain | The server was not able to delete all target references. |
DeleteNode(OpcNodeId)
Deletes a node from the address space hierarchy using the identifier of the node which shall be deleted including the references where the node acts as the source and as the target of the reference.
public OpcStatus DeleteNode(OpcNodeId nodeId)Public Function DeleteNode(nodeId As OpcNodeId) As OpcStatusParameters
| Name | Type | Description |
|---|---|---|
nodeId | OpcNodeId | The OpcNodeId through that the node to delete can be identified and accessed. |
Returns
Exceptions
| Exception | Condition |
|---|---|
| Argument | The nodeId is equals Null. |
| Argument | The nodeId is a null reference ( |
| Invalid | The delete node service is currently not supported, especially using the parameters specified. |
Remarks
Known results for the service invocation are:
| Status | Description |
|---|---|
| BadNodeIdInvalid | For more details see BadNodeIdInvalid. |
| BadNodeIdUnknown | For more details see BadNodeIdUnknown. |
| Bad | For more details see Bad |
| Bad | For more details see Bad |
| Uncertain | The server was not able to delete all target references. |
DeleteNode(OpcNodeId, bool)
Deletes a node from the address space hierarchy using the identifier of the node which shall be deleted including the references where the node acts as the source and optionally (see includeTargetReferences) as the target of the reference.
public OpcStatus DeleteNode(OpcNodeId nodeId, bool includeTargetReferences)Public Function DeleteNode(
nodeId As OpcNodeId,
includeTargetReferences As Boolean) As OpcStatusParameters
| Name | Type | Description |
|---|---|---|
nodeId | OpcNodeId | The OpcNodeId through that the node to delete can be identified and accessed. |
include | Boolean | A value indicating whether all references there the node being deleted acts as the target shall be deleted as well. The value true if all references using the node to delete as the target of the reference shall be deleted as well; otherwise the value false which indicates that only references there the node to delete acts as the source of the reference. |
Returns
Exceptions
| Exception | Condition |
|---|---|
| Argument | The nodeId is equals Null. |
| Argument | The nodeId is a null reference ( |
| Invalid | The delete node service is currently not supported, especially using the parameters specified. |
Remarks
Known results for the service invocation are:
| Status | Description |
|---|---|
| BadNodeIdInvalid | For more details see BadNodeIdInvalid. |
| BadNodeIdUnknown | For more details see BadNodeIdUnknown. |
| Bad | For more details see Bad |
| Bad | For more details see Bad |
| Uncertain | The server was not able to delete all target references. |

