Skip to content

Reference

OpcDeleteNodesRequest Members

Represents the request of the DeleteNodes service of OPC UA, which deletes nodes from the address space.

Reference

OpcDeleteNodesRequest Members ​

Type
OpcDeleteNodesRequest
Namespace
Opc.UaFx.Services
Assembly
Opc.UaFx.Advanced.dll
Package
Opc.UaFx.Advanced v2.59.0
Also in
Opc.UaFx.Client

Inherits members from OpcServiceRequest<OpcDeleteNode, OpcDeleteNodeCollection>, OpcServiceRequest.

Constructors ​

OpcDeleteNodesRequest ​

4 overloads · since v2.7

OverloadDescription
OpcDeleteNodesRequest(IEnumerable<OpcDeleteNode>)since v2.7Initializes a new instance of the OpcDeleteNodesRequest class using the specified commands and a new header.
OpcDeleteNodesRequest(params OpcDeleteNode[])since v2.7Initializes a new instance of the OpcDeleteNodesRequest class using the specified commands and a new header.
OpcDeleteNodesRequest(IOpcServiceRequestHeader, IEnumerable<OpcDeleteNode>)since v2.7Initializes a new instance of the OpcDeleteNodesRequest class using the specified header and commands.
OpcDeleteNodesRequest(IOpcServiceRequestHeader, params OpcDeleteNode[])since v2.7Initializes a new instance of the OpcDeleteNodesRequest class using the specified header and commands.

OpcDeleteNodesRequest(IEnumerable<OpcDeleteNode>) ​

since v2.7

Initializes a new instance of the OpcDeleteNodesRequest class using the specified commands and a new header.

csharp
public OpcDeleteNodesRequest(IEnumerable<OpcDeleteNode> commands)
vbnet
Public Sub New(commands As IEnumerable(Of OpcDeleteNode))

Parameters

NameTypeDescription
commandsIEnumerable<OpcDeleteNode>The commands which specify the nodes to delete.

Exceptions

ExceptionCondition
ArgumentNullExceptionThe commands is a null reference (Nothing in Visual Basic).

OpcDeleteNodesRequest(params OpcDeleteNode[]) ​

since v2.7

Initializes a new instance of the OpcDeleteNodesRequest class using the specified commands and a new header.

csharp
public OpcDeleteNodesRequest(params OpcDeleteNode[] commands)
vbnet
Public Sub New(ParamArray commands As OpcDeleteNode())

Parameters

NameTypeDescription
commandsparams OpcDeleteNode[]The commands which specify the nodes to delete.

Exceptions

ExceptionCondition
ArgumentNullExceptionThe commands is a null reference (Nothing in Visual Basic).

OpcDeleteNodesRequest(IOpcServiceRequestHeader, IEnumerable<OpcDeleteNode>) ​

since v2.7

Initializes a new instance of the OpcDeleteNodesRequest class using the specified header and commands.

csharp
public OpcDeleteNodesRequest(
    IOpcServiceRequestHeader header,
    IEnumerable<OpcDeleteNode> commands)
vbnet
Public Sub New(
    header As IOpcServiceRequestHeader,
    commands As IEnumerable(Of OpcDeleteNode))

Parameters

NameTypeDescription
headerIOpcServiceRequestHeaderThe header of the request.
commandsIEnumerable<OpcDeleteNode>The commands which specify the nodes to delete.

Exceptions

ExceptionCondition
ArgumentNullExceptionThe header or the commands is a null reference (Nothing in Visual Basic).

OpcDeleteNodesRequest(IOpcServiceRequestHeader, params OpcDeleteNode[]) ​

since v2.7

Initializes a new instance of the OpcDeleteNodesRequest class using the specified header and commands.

csharp
public OpcDeleteNodesRequest(
    IOpcServiceRequestHeader header,
    params OpcDeleteNode[] commands)
vbnet
Public Sub New(
    header As IOpcServiceRequestHeader,
    ParamArray commands As OpcDeleteNode())

Parameters

NameTypeDescription
headerIOpcServiceRequestHeaderThe header of the request.
commandsparams OpcDeleteNode[]The commands which specify the nodes to delete.

Exceptions

ExceptionCondition
ArgumentNullExceptionThe header or the commands is a null reference (Nothing in Visual Basic).

Methods ​

Validate ​

protected · override · since v2.50

Validates the request before a server processes it.

csharp
protected override void Validate()
vbnet
Protected Overrides Sub Validate()

Overrides

Validate

Remarks

A server rejects the request with BadNothingToDo if it contains no commands or if the node identifier of a command is a null identifier; then none of the commands is executed.