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
| Overload | Description |
|---|---|
| OpcWriteNode( | Initializes a new instance of the OpcWriteNode class using the specified nodeId to write the value to the Value attribute. |
| OpcWriteNode( | Initializes a new instance of the OpcWriteNode class using the specified nodeId to write the value to the Value attribute. |
| OpcWriteNode( | Initializes a new instance of the OpcWriteNode class using the specified nodeId to write the value to the Value attribute. |
| OpcWriteNode( | Initializes a new instance of the OpcWriteNode class using the specified nodeId and namespaceIndex to write the value to the Value attribute. |
| OpcWriteNode( | Initializes a new instance of the OpcWriteNode class using the specified nodeId and namespaceIndex to write the value to the Value attribute. |
| OpcWriteNode( | Initializes a new instance of the OpcWriteNode class using the specified nodeId to write the value to the attribute. |
| OpcWriteNode( | Initializes a new instance of the OpcWriteNode class using the specified nodeId to write the value to the attribute. |
| OpcWriteNode( | Initializes a new instance of the OpcWriteNode class using the specified nodeId to write the value to the attribute. |
| OpcWriteNode( | Initializes a new instance of the OpcWriteNode class using the specified nodeId and namespaceIndex to write the value to the attribute. |
| OpcWriteNode( | Initializes a new instance of the OpcWriteNode class using the specified nodeId and namespaceIndex to write the value to the attribute. |
| OpcWriteNode( | Initializes a new instance of the OpcWriteNode class using the specified nodeId to write the value into the range of the Value attribute. |
| OpcWriteNode( | Initializes a new instance of the OpcWriteNode class using the specified nodeId to write the value into the range of the Value attribute. |
| OpcWriteNode( | Initializes a new instance of the OpcWriteNode class using the specified nodeId to write the value into the range of the Value attribute. |
| OpcWriteNode( | 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. |
| OpcWriteNode( | 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. |
| OpcWriteNode( | Initializes a new instance of the OpcWriteNode class using the specified nodeId to write the value into the range of the attribute. |
| OpcWriteNode( | Initializes a new instance of the OpcWriteNode class using the specified nodeId to write the value into the range of the attribute. |
| OpcWriteNode( | Initializes a new instance of the OpcWriteNode class using the specified nodeId to write the value into the range of the attribute. |
| OpcWriteNode( | Initializes a new instance of the OpcWriteNode class using the specified nodeId and namespaceIndex to write the value into the range of the attribute. |
| OpcWriteNode( | Initializes 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.
public OpcWriteNode(OpcNodeId nodeId, object value)Public Sub New(nodeId As OpcNodeId, value As Object)Parameters
| Name | Type | Description |
|---|---|---|
nodeId | OpcNodeId | The OpcNodeId of the node on which the service will write the value to the Value attribute. |
value | Object | The data to write to the Value attribute. |
Exceptions
| Exception | Condition |
|---|---|
| Argument | The command does not support empty node identifiers. |
| Argument | The nodeId is a null reference ( |
OpcWriteNode(string, object)
Initializes a new instance of the OpcWriteNode class using the specified nodeId to write the value to the Value attribute.
public OpcWriteNode(string nodeId, object value)Public Sub New(nodeId As String, value As Object)Parameters
| Name | Type | Description |
|---|---|---|
nodeId | String | The textual node identifier of the node on which the service, who will execute this command, will operate on its Value attribute. |
value | Object | The 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.
public OpcWriteNode(int nodeId, object value)Public Sub New(nodeId As Integer, value As Object)Parameters
| Name | Type | Description |
|---|---|---|
nodeId | Int32 | The numeric node identifier of the node on which the service, who will execute this command, will operate on its Value attribute. |
value | Object | The 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.
public OpcWriteNode(string nodeId, int namespaceIndex, object value)Public Sub New(nodeId As String, namespaceIndex As Integer, value As Object)Parameters
| Name | Type | Description |
|---|---|---|
nodeId | String | The textual node identifier of the node on which the service, who will execute this command, will operate on its Value attribute. |
namespaceIndex | Int32 | The index of the namespace within that the node with the nodeId specified can be located. |
value | Object | The 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.
public OpcWriteNode(int nodeId, int namespaceIndex, object value)Public Sub New(nodeId As Integer, namespaceIndex As Integer, value As Object)Parameters
| Name | Type | Description |
|---|---|---|
nodeId | Int32 | The numeric node identifier of the node on which the service, who will execute this command, will operate on its Value attribute. |
namespaceIndex | Int32 | The index of the namespace within that the node with the nodeId specified can be located. |
value | Object | The 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.
public OpcWriteNode(OpcNodeId nodeId, OpcAttribute attribute, object value)Public Sub New(nodeId As OpcNodeId, attribute As OpcAttribute, value As Object)Parameters
| Name | Type | Description |
|---|---|---|
nodeId | OpcNodeId | The OpcNodeId of the node on which the service will write the value to the attribute. |
attribute | OpcAttribute | One of the members defined by the OpcAttribute enumeration that defines which node attribute is to be used by the service. |
value | Object | The data to write to the attribute. |
Exceptions
| Exception | Condition |
|---|---|
| Argument | The command does not support empty node identifiers. |
| Argument | The nodeId is a null reference ( |
OpcWriteNode(string, OpcAttribute, object)
Initializes a new instance of the OpcWriteNode class using the specified nodeId to write the value to the attribute.
public OpcWriteNode(string nodeId, OpcAttribute attribute, object value)Public Sub New(nodeId As String, attribute As OpcAttribute, value As Object)Parameters
| Name | Type | Description |
|---|---|---|
nodeId | String | The textual node identifier of the node on which the service, who will execute this command, will operate on its attribute. |
attribute | OpcAttribute | One of the members defined by the OpcAttribute enumeration that defines which node attribute is to be used by the service. |
value | Object | The 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.
public OpcWriteNode(int nodeId, OpcAttribute attribute, object value)Public Sub New(nodeId As Integer, attribute As OpcAttribute, value As Object)Parameters
| Name | Type | Description |
|---|---|---|
nodeId | Int32 | The numeric node identifier of the node on which the service, who will execute this command, will operate on its attribute. |
attribute | OpcAttribute | One of the members defined by the OpcAttribute enumeration that defines which node attribute is to be used by the service. |
value | Object | The 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.
public OpcWriteNode(
string nodeId,
int namespaceIndex,
OpcAttribute attribute,
object value)Public Sub New(
nodeId As String,
namespaceIndex As Integer,
attribute As OpcAttribute,
value As Object)Parameters
| Name | Type | Description |
|---|---|---|
nodeId | String | The textual node identifier of the node on which the service, who will execute this command, will operate on its attribute. |
namespaceIndex | Int32 | The index of the namespace within that the node with the nodeId specified can be located. |
attribute | OpcAttribute | One of the members defined by the OpcAttribute enumeration that defines which node attribute is to be used by the service. |
value | Object | The 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.
public OpcWriteNode(
int nodeId,
int namespaceIndex,
OpcAttribute attribute,
object value)Public Sub New(
nodeId As Integer,
namespaceIndex As Integer,
attribute As OpcAttribute,
value As Object)Parameters
| Name | Type | Description |
|---|---|---|
nodeId | Int32 | The numeric node identifier of the node on which the service, who will execute this command, will operate on its attribute. |
namespaceIndex | Int32 | The index of the namespace within that the node with the nodeId specified can be located. |
attribute | OpcAttribute | One of the members defined by the OpcAttribute enumeration that defines which node attribute is to be used by the service. |
value | Object | The data to write to the attribute. |
OpcWriteNode(OpcNodeId, OpcRange, object)
Initializes a new instance of the OpcWriteNode class using the specified nodeId to write the value into the range of the Value attribute.
public OpcWriteNode(OpcNodeId nodeId, OpcRange range, object value)Public Sub New(nodeId As OpcNodeId, range As OpcRange, value As Object)Parameters
| Name | Type | Description |
|---|---|---|
nodeId | OpcNodeId | The OpcNodeId of the node on which the service will write the value to the Value attribute. |
range | OpcRange | The OpcRange to use to identify the single element or range of elements to write. |
value | Object | The data to write to the Value attribute. |
Exceptions
| Exception | Condition |
|---|---|
| Argument | The command does not support empty node identifiers. |
| Argument | The nodeId is a null reference ( |
OpcWriteNode(string, OpcRange, object)
Initializes a new instance of the OpcWriteNode class using the specified nodeId to write the value into the range of the Value attribute.
public OpcWriteNode(string nodeId, OpcRange range, object value)Public Sub New(nodeId As String, range As OpcRange, value As Object)Parameters
| Name | Type | Description |
|---|---|---|
nodeId | String | The textual node identifier of the node on which the service, who will execute this command, will operate on its Value attribute. |
range | OpcRange | The OpcRange to use to identify the single element or range of elements to write. |
value | Object | The data to write to the Value attribute. |
OpcWriteNode(int, OpcRange, object)
Initializes a new instance of the OpcWriteNode class using the specified nodeId to write the value into the range of the Value attribute.
public OpcWriteNode(int nodeId, OpcRange range, object value)Public Sub New(nodeId As Integer, range As OpcRange, value As Object)Parameters
| Name | Type | Description |
|---|---|---|
nodeId | Int32 | The numeric node identifier of the node on which the service, who will execute this command, will operate on its Value attribute. |
range | OpcRange | The OpcRange to use to identify the single element or range of elements to write. |
value | Object | The data to write to the Value attribute. |
OpcWriteNode(string, int, OpcRange, object)
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.
public OpcWriteNode(
string nodeId,
int namespaceIndex,
OpcRange range,
object value)Public Sub New(
nodeId As String,
namespaceIndex As Integer,
range As OpcRange,
value As Object)Parameters
| Name | Type | Description |
|---|---|---|
nodeId | String | The textual node identifier of the node on which the service, who will execute this command, will operate on its Value attribute. |
namespaceIndex | Int32 | The index of the namespace within that the node with the nodeId specified can be located. |
range | OpcRange | The OpcRange to use to identify the single element or range of elements to write. |
value | Object | The data to write to the Value attribute. |
OpcWriteNode(int, int, OpcRange, object)
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.
public OpcWriteNode(
int nodeId,
int namespaceIndex,
OpcRange range,
object value)Public Sub New(
nodeId As Integer,
namespaceIndex As Integer,
range As OpcRange,
value As Object)Parameters
| Name | Type | Description |
|---|---|---|
nodeId | Int32 | The numeric node identifier of the node on which the service, who will execute this command, will operate on its Value attribute. |
namespaceIndex | Int32 | The index of the namespace within that the node with the nodeId specified can be located. |
range | OpcRange | The OpcRange to use to identify the single element or range of elements to write. |
value | Object | The data to write to the Value attribute. |
OpcWriteNode(OpcNodeId, OpcAttribute, OpcRange, object)
Initializes a new instance of the OpcWriteNode class using the specified nodeId to write the value into the range of the attribute.
public OpcWriteNode(
OpcNodeId nodeId,
OpcAttribute attribute,
OpcRange range,
object value)Public Sub New(
nodeId As OpcNodeId,
attribute As OpcAttribute,
range As OpcRange,
value As Object)Parameters
| Name | Type | Description |
|---|---|---|
nodeId | OpcNodeId | The OpcNodeId of the node on which the service will write the value to the attribute. |
attribute | OpcAttribute | One of the members defined by the OpcAttribute enumeration that defines which node attribute is to be used by the service. |
range | OpcRange | The OpcRange to use to identify the single element or range of elements to write. |
value | Object | The data to write to the attribute. |
Exceptions
| Exception | Condition |
|---|---|
| Argument | The command does not support empty node identifiers. |
| Argument | The nodeId is a null reference ( |
OpcWriteNode(string, OpcAttribute, OpcRange, object)
Initializes a new instance of the OpcWriteNode class using the specified nodeId to write the value into the range of the attribute.
public OpcWriteNode(
string nodeId,
OpcAttribute attribute,
OpcRange range,
object value)Public Sub New(
nodeId As String,
attribute As OpcAttribute,
range As OpcRange,
value As Object)Parameters
| Name | Type | Description |
|---|---|---|
nodeId | String | The textual node identifier of the node on which the service, who will execute this command, will operate on its attribute. |
attribute | OpcAttribute | One of the members defined by the OpcAttribute enumeration that defines which node attribute is to be used by the service. |
range | OpcRange | The OpcRange to use to identify the single element or range of elements to write. |
value | Object | The data to write to the attribute. |
OpcWriteNode(int, OpcAttribute, OpcRange, object)
Initializes a new instance of the OpcWriteNode class using the specified nodeId to write the value into the range of the attribute.
public OpcWriteNode(
int nodeId,
OpcAttribute attribute,
OpcRange range,
object value)Public Sub New(
nodeId As Integer,
attribute As OpcAttribute,
range As OpcRange,
value As Object)Parameters
| Name | Type | Description |
|---|---|---|
nodeId | Int32 | The numeric node identifier of the node on which the service, who will execute this command, will operate on its attribute. |
attribute | OpcAttribute | One of the members defined by the OpcAttribute enumeration that defines which node attribute is to be used by the service. |
range | OpcRange | The OpcRange to use to identify the single element or range of elements to write. |
value | Object | The data to write to the attribute. |
OpcWriteNode(string, int, OpcAttribute, OpcRange, object)
Initializes a new instance of the OpcWriteNode class using the specified nodeId and namespaceIndex to write the value into the range of the attribute.
public OpcWriteNode(
string nodeId,
int namespaceIndex,
OpcAttribute attribute,
OpcRange range,
object value)Public Sub New(
nodeId As String,
namespaceIndex As Integer,
attribute As OpcAttribute,
range As OpcRange,
value As Object)Parameters
| Name | Type | Description |
|---|---|---|
nodeId | String | The textual node identifier of the node on which the service, who will execute this command, will operate on its attribute. |
namespaceIndex | Int32 | The index of the namespace within that the node with the nodeId specified can be located. |
attribute | OpcAttribute | One of the members defined by the OpcAttribute enumeration that defines which node attribute is to be used by the service. |
range | OpcRange | The OpcRange to use to identify the single element or range of elements to write. |
value | Object | The data to write to the attribute. |
OpcWriteNode(int, int, OpcAttribute, OpcRange, object)
Initializes a new instance of the OpcWriteNode class using the specified nodeId and namespaceIndex to write the value into the range of the attribute.
public OpcWriteNode(
int nodeId,
int namespaceIndex,
OpcAttribute attribute,
OpcRange range,
object value)Public Sub New(
nodeId As Integer,
namespaceIndex As Integer,
attribute As OpcAttribute,
range As OpcRange,
value As Object)Parameters
| Name | Type | Description |
|---|---|---|
nodeId | Int32 | The numeric node identifier of the node on which the service, who will execute this command, will operate on its attribute. |
namespaceIndex | Int32 | The index of the namespace within that the node with the nodeId specified can be located. |
attribute | OpcAttribute | One of the members defined by the OpcAttribute enumeration that defines which node attribute is to be used by the service. |
range | OpcRange | The OpcRange to use to identify the single element or range of elements to write. |
value | Object | The data to write to the attribute. |
Properties
Range
Gets the OpcRange used to identify a single element or range of elements in the Attribute.
public OpcRange Range { get; }Public ReadOnly Property Range As OpcRangeProperty value
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.
public OpcValue Value { get; }Public ReadOnly Property Value As OpcValueProperty value
The OpcValue representing the container for the non-OpcValue data used to initialize this command; otherwise the OpcValue to write.

