Skip to content

Reference

OpcWriteNodesRequest Members

Represents the request of the Write service of OPC UA, which writes attributes of nodes.

Reference

OpcWriteNodesRequest Members ​

Type
OpcWriteNodesRequest
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<OpcWriteNode, OpcWriteNodeCollection>, OpcServiceRequest.

Constructors ​

OpcWriteNodesRequest ​

4 overloads

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

OpcWriteNodesRequest(IEnumerable<OpcWriteNode>) ​

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

csharp
public OpcWriteNodesRequest(IEnumerable<OpcWriteNode> commands)
vbnet
Public Sub New(commands As IEnumerable(Of OpcWriteNode))

Parameters

NameTypeDescription
commandsIEnumerable<OpcWriteNode>The commands which specify the attributes and values to write.

Exceptions

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

OpcWriteNodesRequest(params OpcWriteNode[]) ​

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

csharp
public OpcWriteNodesRequest(params OpcWriteNode[] commands)
vbnet
Public Sub New(ParamArray commands As OpcWriteNode())

Parameters

NameTypeDescription
commandsparams OpcWriteNode[]The commands which specify the attributes and values to write.

Exceptions

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

OpcWriteNodesRequest(IOpcServiceRequestHeader, IEnumerable<OpcWriteNode>) ​

since v2.7

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

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

Parameters

NameTypeDescription
headerIOpcServiceRequestHeaderThe header of the request.
commandsIEnumerable<OpcWriteNode>The commands which specify the attributes and values to write.

Exceptions

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

OpcWriteNodesRequest(IOpcServiceRequestHeader, params OpcWriteNode[]) ​

since v2.7

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

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

Parameters

NameTypeDescription
headerIOpcServiceRequestHeaderThe header of the request.
commandsparams OpcWriteNode[]The commands which specify the attributes and values to write.

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; then none of the commands is executed.