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
| Overload | Description |
|---|---|
| Opc | Initializes a new instance of the Opccommands and a new header. |
| Opc | Initializes a new instance of the Opccommands and a new header. |
| Opc | Initializes a new instance of the Opcheader and commands. |
| Opc | Initializes a new instance of the Opcheader and commands. |
OpcAddReferencesRequest(IEnumerable<OpcAddReference>)
Initializes a new instance of the OpcAddReferencesRequest class using the specified commands and a new header.
public OpcAddReferencesRequest(IEnumerable<OpcAddReference> commands)Public Sub New(commands As IEnumerable(Of OpcAddReference))Parameters
| Name | Type | Description |
|---|---|---|
commands | IEnumerable<OpcAddReference> | The commands which specify the references to add. |
Exceptions
| Exception | Condition |
|---|---|
| Argument | The commands is a null reference ( |
OpcAddReferencesRequest(params OpcAddReference[])
Initializes a new instance of the OpcAddReferencesRequest class using the specified commands and a new header.
public OpcAddReferencesRequest(params OpcAddReference[] commands)Public Sub New(ParamArray commands As OpcAddReference())Parameters
| Name | Type | Description |
|---|---|---|
commands | params OpcAddReference[] | The commands which specify the references to add. |
Exceptions
| Exception | Condition |
|---|---|
| Argument | The commands is a null reference ( |
OpcAddReferencesRequest(IOpcServiceRequestHeader, IEnumerable<OpcAddReference>)
Initializes a new instance of the OpcAddReferencesRequest class using the specified header and commands.
public OpcAddReferencesRequest(
IOpcServiceRequestHeader header,
IEnumerable<OpcAddReference> commands)Public Sub New(
header As IOpcServiceRequestHeader,
commands As IEnumerable(Of OpcAddReference))Parameters
| Name | Type | Description |
|---|---|---|
header | IOpc | The header of the request. |
commands | IEnumerable<OpcAddReference> | The commands which specify the references to add. |
Exceptions
| Exception | Condition |
|---|---|
| Argument | The header or the commands is a null reference ( |
OpcAddReferencesRequest(IOpcServiceRequestHeader, params OpcAddReference[])
Initializes a new instance of the OpcAddReferencesRequest class using the specified header and commands.
public OpcAddReferencesRequest(
IOpcServiceRequestHeader header,
params OpcAddReference[] commands)Public Sub New(
header As IOpcServiceRequestHeader,
ParamArray commands As OpcAddReference())Parameters
| Name | Type | Description |
|---|---|---|
header | IOpc | The header of the request. |
commands | params OpcAddReference[] | The commands which specify the references to add. |
Exceptions
| Exception | Condition |
|---|---|
| Argument | The header or the commands is a null reference ( |
Methods
Validate
Validates the request before a server processes it.
protected override void Validate()Protected Overrides Sub Validate()Overrides
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.

