Skip to content

Reference

OpcAddReferencesRequest Members

Represents the request of the AddReferences service of OPC UA, which adds references to the address space.

Reference

OpcAddReferencesRequest Members ​

Type
OpcAddReferencesRequest
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<OpcAddReference, OpcAddReferenceCollection>, OpcServiceRequest.

Constructors ​

OpcAddReferencesRequest ​

4 overloads · since v2.7

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

OpcAddReferencesRequest(IEnumerable<OpcAddReference>) ​

since v2.7

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

csharp
public OpcAddReferencesRequest(IEnumerable<OpcAddReference> commands)
vbnet
Public Sub New(commands As IEnumerable(Of OpcAddReference))

Parameters

NameTypeDescription
commandsIEnumerable<OpcAddReference>The commands which specify the references to add.

Exceptions

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

OpcAddReferencesRequest(params OpcAddReference[]) ​

since v2.7

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

csharp
public OpcAddReferencesRequest(params OpcAddReference[] commands)
vbnet
Public Sub New(ParamArray commands As OpcAddReference())

Parameters

NameTypeDescription
commandsparams OpcAddReference[]The commands which specify the references to add.

Exceptions

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

OpcAddReferencesRequest(IOpcServiceRequestHeader, IEnumerable<OpcAddReference>) ​

since v2.7

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

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

Parameters

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

Exceptions

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

OpcAddReferencesRequest(IOpcServiceRequestHeader, params OpcAddReference[]) ​

since v2.7

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

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

Parameters

NameTypeDescription
headerIOpcServiceRequestHeaderThe header of the request.
commandsparams OpcAddReference[]The commands which specify the references to add.

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.