Skip to content

Reference

OpcWriteNode Members

Defines a single command of the IOpcWriteNodesService.

Reference

OpcWriteNode Members ​

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

Inherits members from OpcNodeAttributeServiceCommand, OpcNodeServiceCommand, OpcServiceCommand.

Constructors ​

OpcWriteNode ​

20 overloads

OverloadDescription
OpcWriteNode(OpcNodeId, object)Initializes a new instance of the OpcWriteNode class using the specified nodeId to write the value to the Value attribute.
OpcWriteNode(string, object)Initializes a new instance of the OpcWriteNode class using the specified nodeId to write the value to the Value attribute.
OpcWriteNode(int, object)Initializes a new instance of the OpcWriteNode class using the specified nodeId to write the value to the Value attribute.
OpcWriteNode(string, int, object)Initializes a new instance of the OpcWriteNode class using the specified nodeId and namespaceIndex to write the value to the Value attribute.
OpcWriteNode(int, int, object)Initializes a new instance of the OpcWriteNode class using the specified nodeId and namespaceIndex to write the value to the Value attribute.
OpcWriteNode(OpcNodeId, OpcAttribute, object)Initializes a new instance of the OpcWriteNode class using the specified nodeId to write the value to the attribute.
OpcWriteNode(string, OpcAttribute, object)Initializes a new instance of the OpcWriteNode class using the specified nodeId to write the value to the attribute.
OpcWriteNode(int, OpcAttribute, object)Initializes a new instance of the OpcWriteNode class using the specified nodeId to write the value to the attribute.
OpcWriteNode(string, int, OpcAttribute, object)Initializes a new instance of the OpcWriteNode class using the specified nodeId and namespaceIndex to write the value to the attribute.
OpcWriteNode(int, int, OpcAttribute, object)Initializes a new instance of the OpcWriteNode class using the specified nodeId and namespaceIndex to write the value to the attribute.
OpcWriteNode(OpcNodeId, OpcRange, object)since v2.24Initializes a new instance of the OpcWriteNode class using the specified nodeId to write the value into the range of the Value attribute.
OpcWriteNode(string, OpcRange, object)since v2.24Initializes a new instance of the OpcWriteNode class using the specified nodeId to write the value into the range of the Value attribute.
OpcWriteNode(int, OpcRange, object)since v2.24Initializes a new instance of the OpcWriteNode class using the specified nodeId to write the value into the range of the Value attribute.
OpcWriteNode(string, int, OpcRange, object)since v2.24Initializes a new instance of the OpcWriteNode class using the specified nodeId and namespaceIndex to write the value into the range of the Value attribute.
OpcWriteNode(int, int, OpcRange, object)since v2.24Initializes a new instance of the OpcWriteNode class using the specified nodeId and namespaceIndex to write the value into the range of the Value attribute.
OpcWriteNode(OpcNodeId, OpcAttribute, OpcRange, object)since v2.24Initializes a new instance of the OpcWriteNode class using the specified nodeId to write the value into the range of the attribute.
OpcWriteNode(string, OpcAttribute, OpcRange, object)since v2.24Initializes a new instance of the OpcWriteNode class using the specified nodeId to write the value into the range of the attribute.
OpcWriteNode(int, OpcAttribute, OpcRange, object)since v2.24Initializes a new instance of the OpcWriteNode class using the specified nodeId to write the value into the range of the attribute.
OpcWriteNode(string, int, OpcAttribute, OpcRange, object)since v2.24Initializes a new instance of the OpcWriteNode class using the specified nodeId and namespaceIndex to write the value into the range of the attribute.
OpcWriteNode(int, int, OpcAttribute, OpcRange, object)since v2.24Initializes a new instance of the OpcWriteNode class using the specified nodeId and namespaceIndex to write the value into the range of the attribute.

OpcWriteNode(OpcNodeId, object) ​

Initializes a new instance of the OpcWriteNode class using the specified nodeId to write the value to the Value attribute.

csharp
public OpcWriteNode(OpcNodeId nodeId, object value)
vbnet
Public Sub New(nodeId As OpcNodeId, value As Object)

Parameters

NameTypeDescription
nodeIdOpcNodeIdThe OpcNodeId of the node on which the service will write the value to the Value attribute.
valueObjectThe data to write to the Value attribute.

Exceptions

ExceptionCondition
ArgumentExceptionThe command does not support empty node identifiers.
ArgumentNullExceptionThe nodeId is a null reference (Nothing in Visual Basic).

OpcWriteNode(string, object) ​

Initializes a new instance of the OpcWriteNode class using the specified nodeId to write the value to the Value attribute.

csharp
public OpcWriteNode(string nodeId, object value)
vbnet
Public Sub New(nodeId As String, value As Object)

Parameters

NameTypeDescription
nodeIdStringThe textual node identifier of the node on which the service, who will execute this command, will operate on its Value attribute.
valueObjectThe data to write to the Value attribute.

OpcWriteNode(int, object) ​

Initializes a new instance of the OpcWriteNode class using the specified nodeId to write the value to the Value attribute.

csharp
public OpcWriteNode(int nodeId, object value)
vbnet
Public Sub New(nodeId As Integer, value As Object)

Parameters

NameTypeDescription
nodeIdInt32The numeric node identifier of the node on which the service, who will execute this command, will operate on its Value attribute.
valueObjectThe data to write to the Value attribute.

OpcWriteNode(string, int, object) ​

Initializes a new instance of the OpcWriteNode class using the specified nodeId and namespaceIndex to write the value to the Value attribute.

csharp
public OpcWriteNode(string nodeId, int namespaceIndex, object value)
vbnet
Public Sub New(nodeId As String, namespaceIndex As Integer, value As Object)

Parameters

NameTypeDescription
nodeIdStringThe textual node identifier of the node on which the service, who will execute this command, will operate on its Value attribute.
namespaceIndexInt32The index of the namespace within that the node with the nodeId specified can be located.
valueObjectThe data to write to the Value attribute.

OpcWriteNode(int, int, object) ​

Initializes a new instance of the OpcWriteNode class using the specified nodeId and namespaceIndex to write the value to the Value attribute.

csharp
public OpcWriteNode(int nodeId, int namespaceIndex, object value)
vbnet
Public Sub New(nodeId As Integer, namespaceIndex As Integer, value As Object)

Parameters

NameTypeDescription
nodeIdInt32The numeric node identifier of the node on which the service, who will execute this command, will operate on its Value attribute.
namespaceIndexInt32The index of the namespace within that the node with the nodeId specified can be located.
valueObjectThe data to write to the Value attribute.

OpcWriteNode(OpcNodeId, OpcAttribute, object) ​

Initializes a new instance of the OpcWriteNode class using the specified nodeId to write the value to the attribute.

csharp
public OpcWriteNode(OpcNodeId nodeId, OpcAttribute attribute, object value)
vbnet
Public Sub New(nodeId As OpcNodeId, attribute As OpcAttribute, value As Object)

Parameters

NameTypeDescription
nodeIdOpcNodeIdThe OpcNodeId of the node on which the service will write the value to the attribute.
attributeOpcAttributeOne of the members defined by the OpcAttribute enumeration that defines which node attribute is to be used by the service.
valueObjectThe data to write to the attribute.

Exceptions

ExceptionCondition
ArgumentExceptionThe command does not support empty node identifiers.
ArgumentNullExceptionThe nodeId is a null reference (Nothing in Visual Basic).

OpcWriteNode(string, OpcAttribute, object) ​

Initializes a new instance of the OpcWriteNode class using the specified nodeId to write the value to the attribute.

csharp
public OpcWriteNode(string nodeId, OpcAttribute attribute, object value)
vbnet
Public Sub New(nodeId As String, attribute As OpcAttribute, value As Object)

Parameters

NameTypeDescription
nodeIdStringThe textual node identifier of the node on which the service, who will execute this command, will operate on its attribute.
attributeOpcAttributeOne of the members defined by the OpcAttribute enumeration that defines which node attribute is to be used by the service.
valueObjectThe data to write to the attribute.

OpcWriteNode(int, OpcAttribute, object) ​

Initializes a new instance of the OpcWriteNode class using the specified nodeId to write the value to the attribute.

csharp
public OpcWriteNode(int nodeId, OpcAttribute attribute, object value)
vbnet
Public Sub New(nodeId As Integer, attribute As OpcAttribute, value As Object)

Parameters

NameTypeDescription
nodeIdInt32The numeric node identifier of the node on which the service, who will execute this command, will operate on its attribute.
attributeOpcAttributeOne of the members defined by the OpcAttribute enumeration that defines which node attribute is to be used by the service.
valueObjectThe data to write to the attribute.

OpcWriteNode(string, int, OpcAttribute, object) ​

Initializes a new instance of the OpcWriteNode class using the specified nodeId and namespaceIndex to write the value to the attribute.

csharp
public OpcWriteNode(
    string nodeId,
    int namespaceIndex,
    OpcAttribute attribute,
    object value)
vbnet
Public Sub New(
    nodeId As String,
    namespaceIndex As Integer,
    attribute As OpcAttribute,
    value As Object)

Parameters

NameTypeDescription
nodeIdStringThe textual node identifier of the node on which the service, who will execute this command, will operate on its attribute.
namespaceIndexInt32The index of the namespace within that the node with the nodeId specified can be located.
attributeOpcAttributeOne of the members defined by the OpcAttribute enumeration that defines which node attribute is to be used by the service.
valueObjectThe data to write to the attribute.

OpcWriteNode(int, int, OpcAttribute, object) ​

Initializes a new instance of the OpcWriteNode class using the specified nodeId and namespaceIndex to write the value to the attribute.

csharp
public OpcWriteNode(
    int nodeId,
    int namespaceIndex,
    OpcAttribute attribute,
    object value)
vbnet
Public Sub New(
    nodeId As Integer,
    namespaceIndex As Integer,
    attribute As OpcAttribute,
    value As Object)

Parameters

NameTypeDescription
nodeIdInt32The numeric node identifier of the node on which the service, who will execute this command, will operate on its attribute.
namespaceIndexInt32The index of the namespace within that the node with the nodeId specified can be located.
attributeOpcAttributeOne of the members defined by the OpcAttribute enumeration that defines which node attribute is to be used by the service.
valueObjectThe data to write to the attribute.

OpcWriteNode(OpcNodeId, OpcRange, object) ​

since v2.24

Initializes a new instance of the OpcWriteNode class using the specified nodeId to write the value into the range of the Value attribute.

csharp
public OpcWriteNode(OpcNodeId nodeId, OpcRange range, object value)
vbnet
Public Sub New(nodeId As OpcNodeId, range As OpcRange, value As Object)

Parameters

NameTypeDescription
nodeIdOpcNodeIdThe OpcNodeId of the node on which the service will write the value to the Value attribute.
rangeOpcRangeThe OpcRange to use to identify the single element or range of elements to write.
valueObjectThe data to write to the Value attribute.

Exceptions

ExceptionCondition
ArgumentExceptionThe command does not support empty node identifiers.
ArgumentNullExceptionThe nodeId is a null reference (Nothing in Visual Basic).

OpcWriteNode(string, OpcRange, object) ​

since v2.24

Initializes a new instance of the OpcWriteNode class using the specified nodeId to write the value into the range of the Value attribute.

csharp
public OpcWriteNode(string nodeId, OpcRange range, object value)
vbnet
Public Sub New(nodeId As String, range As OpcRange, value As Object)

Parameters

NameTypeDescription
nodeIdStringThe textual node identifier of the node on which the service, who will execute this command, will operate on its Value attribute.
rangeOpcRangeThe OpcRange to use to identify the single element or range of elements to write.
valueObjectThe data to write to the Value attribute.

OpcWriteNode(int, OpcRange, object) ​

since v2.24

Initializes a new instance of the OpcWriteNode class using the specified nodeId to write the value into the range of the Value attribute.

csharp
public OpcWriteNode(int nodeId, OpcRange range, object value)
vbnet
Public Sub New(nodeId As Integer, range As OpcRange, value As Object)

Parameters

NameTypeDescription
nodeIdInt32The numeric node identifier of the node on which the service, who will execute this command, will operate on its Value attribute.
rangeOpcRangeThe OpcRange to use to identify the single element or range of elements to write.
valueObjectThe data to write to the Value attribute.

OpcWriteNode(string, int, OpcRange, object) ​

since v2.24

Initializes a new instance of the OpcWriteNode class using the specified nodeId and namespaceIndex to write the value into the range of the Value attribute.

csharp
public OpcWriteNode(
    string nodeId,
    int namespaceIndex,
    OpcRange range,
    object value)
vbnet
Public Sub New(
    nodeId As String,
    namespaceIndex As Integer,
    range As OpcRange,
    value As Object)

Parameters

NameTypeDescription
nodeIdStringThe textual node identifier of the node on which the service, who will execute this command, will operate on its Value attribute.
namespaceIndexInt32The index of the namespace within that the node with the nodeId specified can be located.
rangeOpcRangeThe OpcRange to use to identify the single element or range of elements to write.
valueObjectThe data to write to the Value attribute.

OpcWriteNode(int, int, OpcRange, object) ​

since v2.24

Initializes a new instance of the OpcWriteNode class using the specified nodeId and namespaceIndex to write the value into the range of the Value attribute.

csharp
public OpcWriteNode(
    int nodeId,
    int namespaceIndex,
    OpcRange range,
    object value)
vbnet
Public Sub New(
    nodeId As Integer,
    namespaceIndex As Integer,
    range As OpcRange,
    value As Object)

Parameters

NameTypeDescription
nodeIdInt32The numeric node identifier of the node on which the service, who will execute this command, will operate on its Value attribute.
namespaceIndexInt32The index of the namespace within that the node with the nodeId specified can be located.
rangeOpcRangeThe OpcRange to use to identify the single element or range of elements to write.
valueObjectThe data to write to the Value attribute.

OpcWriteNode(OpcNodeId, OpcAttribute, OpcRange, object) ​

since v2.24

Initializes a new instance of the OpcWriteNode class using the specified nodeId to write the value into the range of the attribute.

csharp
public OpcWriteNode(
    OpcNodeId nodeId,
    OpcAttribute attribute,
    OpcRange range,
    object value)
vbnet
Public Sub New(
    nodeId As OpcNodeId,
    attribute As OpcAttribute,
    range As OpcRange,
    value As Object)

Parameters

NameTypeDescription
nodeIdOpcNodeIdThe OpcNodeId of the node on which the service will write the value to the attribute.
attributeOpcAttributeOne of the members defined by the OpcAttribute enumeration that defines which node attribute is to be used by the service.
rangeOpcRangeThe OpcRange to use to identify the single element or range of elements to write.
valueObjectThe data to write to the attribute.

Exceptions

ExceptionCondition
ArgumentExceptionThe command does not support empty node identifiers.
ArgumentNullExceptionThe nodeId is a null reference (Nothing in Visual Basic).

OpcWriteNode(string, OpcAttribute, OpcRange, object) ​

since v2.24

Initializes a new instance of the OpcWriteNode class using the specified nodeId to write the value into the range of the attribute.

csharp
public OpcWriteNode(
    string nodeId,
    OpcAttribute attribute,
    OpcRange range,
    object value)
vbnet
Public Sub New(
    nodeId As String,
    attribute As OpcAttribute,
    range As OpcRange,
    value As Object)

Parameters

NameTypeDescription
nodeIdStringThe textual node identifier of the node on which the service, who will execute this command, will operate on its attribute.
attributeOpcAttributeOne of the members defined by the OpcAttribute enumeration that defines which node attribute is to be used by the service.
rangeOpcRangeThe OpcRange to use to identify the single element or range of elements to write.
valueObjectThe data to write to the attribute.

OpcWriteNode(int, OpcAttribute, OpcRange, object) ​

since v2.24

Initializes a new instance of the OpcWriteNode class using the specified nodeId to write the value into the range of the attribute.

csharp
public OpcWriteNode(
    int nodeId,
    OpcAttribute attribute,
    OpcRange range,
    object value)
vbnet
Public Sub New(
    nodeId As Integer,
    attribute As OpcAttribute,
    range As OpcRange,
    value As Object)

Parameters

NameTypeDescription
nodeIdInt32The numeric node identifier of the node on which the service, who will execute this command, will operate on its attribute.
attributeOpcAttributeOne of the members defined by the OpcAttribute enumeration that defines which node attribute is to be used by the service.
rangeOpcRangeThe OpcRange to use to identify the single element or range of elements to write.
valueObjectThe data to write to the attribute.

OpcWriteNode(string, int, OpcAttribute, OpcRange, object) ​

since v2.24

Initializes a new instance of the OpcWriteNode class using the specified nodeId and namespaceIndex to write the value into the range of the attribute.

csharp
public OpcWriteNode(
    string nodeId,
    int namespaceIndex,
    OpcAttribute attribute,
    OpcRange range,
    object value)
vbnet
Public Sub New(
    nodeId As String,
    namespaceIndex As Integer,
    attribute As OpcAttribute,
    range As OpcRange,
    value As Object)

Parameters

NameTypeDescription
nodeIdStringThe textual node identifier of the node on which the service, who will execute this command, will operate on its attribute.
namespaceIndexInt32The index of the namespace within that the node with the nodeId specified can be located.
attributeOpcAttributeOne of the members defined by the OpcAttribute enumeration that defines which node attribute is to be used by the service.
rangeOpcRangeThe OpcRange to use to identify the single element or range of elements to write.
valueObjectThe data to write to the attribute.

OpcWriteNode(int, int, OpcAttribute, OpcRange, object) ​

since v2.24

Initializes a new instance of the OpcWriteNode class using the specified nodeId and namespaceIndex to write the value into the range of the attribute.

csharp
public OpcWriteNode(
    int nodeId,
    int namespaceIndex,
    OpcAttribute attribute,
    OpcRange range,
    object value)
vbnet
Public Sub New(
    nodeId As Integer,
    namespaceIndex As Integer,
    attribute As OpcAttribute,
    range As OpcRange,
    value As Object)

Parameters

NameTypeDescription
nodeIdInt32The numeric node identifier of the node on which the service, who will execute this command, will operate on its attribute.
namespaceIndexInt32The index of the namespace within that the node with the nodeId specified can be located.
attributeOpcAttributeOne of the members defined by the OpcAttribute enumeration that defines which node attribute is to be used by the service.
rangeOpcRangeThe OpcRange to use to identify the single element or range of elements to write.
valueObjectThe data to write to the attribute.

Properties ​

Range ​

since v2.24

Gets the OpcRange used to identify a single element or range of elements in the Attribute.

csharp
public OpcRange Range { get; }
vbnet
Public ReadOnly Property Range As OpcRange

Property value

OpcRange

The OpcRange used to identify a single element of an array or a single range of indexes for arrays. The first element is identified by index zero. The Range is not used if the specified Attribute is not an array. However, if the specified Attribute is an array and this property is not used, then all elements are to be included in the range. If Empty is used for this property the range is not used.

Remarks

A server shall return a BadWriteNotSupported if a Range is provided and writing into the Range is not possible for a node.

Value ​

Gets the data which is to be written by the service to a specific attribute of a specific node.

csharp
public OpcValue Value { get; }
vbnet
Public ReadOnly Property Value As OpcValue

Property value

OpcValue

The OpcValue representing the container for the non-OpcValue data used to initialize this command; otherwise the OpcValue to write.