Skip to content

Reference

OpcDeleteReferencesRequest Members

Represents the request of the DeleteReferences service of OPC UA, which deletes references from the address space.

Reference

OpcDeleteReferencesRequest Members ​

Type
OpcDeleteReferencesRequest
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<OpcDeleteReference, OpcDeleteReferenceCollection>, OpcServiceRequest.

Constructors ​

OpcDeleteReferencesRequest ​

4 overloads · since v2.7

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

OpcDeleteReferencesRequest(IEnumerable<OpcDeleteReference>) ​

since v2.7

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

csharp
public OpcDeleteReferencesRequest(IEnumerable<OpcDeleteReference> commands)
vbnet
Public Sub New(commands As IEnumerable(Of OpcDeleteReference))

Parameters

NameTypeDescription
commandsIEnumerable<OpcDeleteReference>The commands which specify the references to delete.

Exceptions

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

OpcDeleteReferencesRequest(params OpcDeleteReference[]) ​

since v2.7

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

csharp
public OpcDeleteReferencesRequest(params OpcDeleteReference[] commands)
vbnet
Public Sub New(ParamArray commands As OpcDeleteReference())

Parameters

NameTypeDescription
commandsparams OpcDeleteReference[]The commands which specify the references to delete.

Exceptions

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

OpcDeleteReferencesRequest(IOpcServiceRequestHeader, IEnumerable<OpcDeleteReference>) ​

since v2.7

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

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

Parameters

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

Exceptions

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

OpcDeleteReferencesRequest(IOpcServiceRequestHeader, params OpcDeleteReference[]) ​

since v2.7

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

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

Parameters

NameTypeDescription
headerIOpcServiceRequestHeaderThe header of the request.
commandsparams OpcDeleteReference[]The commands which specify the references 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 source node identifier, the target node identifier or the reference type identifier of a command is a null identifier; then none of the commands is executed.