Skip to content

Reference

OpcClient.DeleteNodes Method

Deletes one or more nodes from the address space hierarchy using the commands specified.

Reference

OpcClient.DeleteNodes 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

4 overloads

OverloadDescription
DeleteNodes(IEnumerable<OpcDeleteNode>)since v2.7Deletes one or more nodes from the address space hierarchy using the commands specified.
DeleteNodes(params OpcDeleteNode[])since v2.7Deletes one or more nodes from the address space hierarchy using the commands specified.
DeleteNodes(IEnumerable<OpcNodeId>)Deletes one or more nodes from the address space hierarchy using the identifiers of the nodes which shall be deleted including the references where the node acts as the source and as the target of the reference.
DeleteNodes(params OpcNodeId[])Deletes one or more nodes from the address space hierarchy using the identifiers of the nodes which shall be deleted including the references where the node acts as the source and as the target of the reference.

Exceptions (all overloads)

ExceptionCondition
ObjectDisposedExceptionThe object has been disposed of.
OpcExceptionThe service execution failed upon different circumstances; for more details see exception details. The following issues can lead to that exception: BadNothingToDo and BadTooManyOperations.

DeleteNodes(IEnumerable<OpcDeleteNode>) ​

since v2.7

Deletes one or more nodes from the address space hierarchy using the commands specified.

csharp
public OpcStatusCollection DeleteNodes(IEnumerable<OpcDeleteNode> commands)
vbnet
Public Function DeleteNodes(
    commands As IEnumerable(Of OpcDeleteNode)) As OpcStatusCollection

Parameters

NameTypeDescription
commandsIEnumerable<OpcDeleteNode>A sequence of OpcDeleteNode instances to process.

Returns

OpcStatusCollection

An instance of the OpcStatusCollection class which contains the information about the outcome of each processed command.

Exceptions

ExceptionCondition
ArgumentNullExceptionThe commands sequence or one of its items is a null reference (Nothing in Visual Basic).
InvalidOperationExceptionThe delete node service is currently not supported, especially using the commands specified.

Remarks

Known results for the commands specified are:

StatusDescription
BadNodeIdInvalidFor more details see BadNodeIdInvalid.
BadNodeIdUnknownFor more details see BadNodeIdUnknown.
BadUserAccessDeniedFor more details see BadUserAccessDenied.
BadNoDeleteRightsFor more details see BadNoDeleteRights.
UncertainReferenceNotDeletedThe server was not able to delete all target references.

DeleteNodes(params OpcDeleteNode[]) ​

since v2.7

Deletes one or more nodes from the address space hierarchy using the commands specified.

csharp
public OpcStatusCollection DeleteNodes(params OpcDeleteNode[] commands)
vbnet
Public Function DeleteNodes(
    ParamArray commands As OpcDeleteNode()) As OpcStatusCollection

Parameters

NameTypeDescription
commandsparams OpcDeleteNode[]An array of OpcDeleteNode instances to process.

Returns

OpcStatusCollection

An instance of the OpcStatusCollection class which contains the information about the outcome of each processed command.

Exceptions

ExceptionCondition
ArgumentNullExceptionThe commands sequence or one of its items is a null reference (Nothing in Visual Basic).
InvalidOperationExceptionThe delete node service is currently not supported, especially using the commands specified.

Remarks

Known results for the commands specified are:

StatusDescription
BadNodeIdInvalidFor more details see BadNodeIdInvalid.
BadNodeIdUnknownFor more details see BadNodeIdUnknown.
BadUserAccessDeniedFor more details see BadUserAccessDenied.
BadNoDeleteRightsFor more details see BadNoDeleteRights.
UncertainReferenceNotDeletedThe server was not able to delete all target references.

DeleteNodes(IEnumerable<OpcNodeId>) ​

Deletes one or more nodes from the address space hierarchy using the identifiers of the nodes which shall be deleted including the references where the node acts as the source and as the target of the reference.

csharp
public OpcStatusCollection DeleteNodes(IEnumerable<OpcNodeId> nodeIds)
vbnet
Public Function DeleteNodes(
    nodeIds As IEnumerable(Of OpcNodeId)) As OpcStatusCollection

Parameters

NameTypeDescription
nodeIdsIEnumerable<OpcNodeId>A sequence of OpcNodeId instances through that the nodes to delete can be identified and accessed.

Returns

OpcStatusCollection

Exceptions

ExceptionCondition
ArgumentExceptionOne of the OpcNodeId instances in nodeIds is equals Null.
ArgumentNullExceptionThe nodeIds is a null reference (Nothing in Visual Basic).
InvalidOperationExceptionThe delete node service is currently not supported, especially using the parameters specified.

Remarks

Known results for the service invocation are:

StatusDescription
BadNodeIdInvalidFor more details see BadNodeIdInvalid.
BadNodeIdUnknownFor more details see BadNodeIdUnknown.
BadUserAccessDeniedFor more details see BadUserAccessDenied.
BadNoDeleteRightsFor more details see BadNoDeleteRights.
UncertainReferenceNotDeletedThe server was not able to delete all target references.

DeleteNodes(params OpcNodeId[]) ​

Deletes one or more nodes from the address space hierarchy using the identifiers of the nodes which shall be deleted including the references where the node acts as the source and as the target of the reference.

csharp
public OpcStatusCollection DeleteNodes(params OpcNodeId[] nodeIds)
vbnet
Public Function DeleteNodes(
    ParamArray nodeIds As OpcNodeId()) As OpcStatusCollection

Parameters

NameTypeDescription
nodeIdsparams OpcNodeId[]An array of OpcNodeId instances through that the nodes to delete can be identified and accessed.

Returns

OpcStatusCollection

Exceptions

ExceptionCondition
ArgumentExceptionOne of the OpcNodeId instances in nodeIds is equals Null.
ArgumentNullExceptionThe nodeIds is a null reference (Nothing in Visual Basic).
InvalidOperationExceptionThe delete node service is currently not supported, especially using the parameters specified.

Remarks

Known results for the service invocation are:

StatusDescription
BadNodeIdInvalidFor more details see BadNodeIdInvalid.
BadNodeIdUnknownFor more details see BadNodeIdUnknown.
BadUserAccessDeniedFor more details see BadUserAccessDenied.
BadNoDeleteRightsFor more details see BadNoDeleteRights.
UncertainReferenceNotDeletedThe server was not able to delete all target references.