Skip to content

Reference

OpcUpdateNodeHistory Members

Represents a command which updates values in the history of a node.

Reference

OpcUpdateNodeHistory Members ​

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

Inherits members from OpcNodeServiceCommand, OpcServiceCommand.

Constructors ​

OpcUpdateNodeHistory ​

10 overloads

OverloadDescription
OpcUpdateNodeHistory(OpcNodeId, IEnumerable<OpcValue>)Initializes a new instance of the OpcUpdateNodeHistory class using the nodeId and values specified.
OpcUpdateNodeHistory(OpcNodeId, params OpcValue[])Initializes a new instance of the OpcUpdateNodeHistory class using the nodeId and values specified.
OpcUpdateNodeHistory(string, IEnumerable<OpcValue>)Initializes a new instance of the OpcUpdateNodeHistory class using the nodeId and values specified.
OpcUpdateNodeHistory(string, params OpcValue[])Initializes a new instance of the OpcUpdateNodeHistory class using the nodeId and values specified.
OpcUpdateNodeHistory(int, IEnumerable<OpcValue>)Initializes a new instance of the OpcUpdateNodeHistory class using the nodeId and values specified.
OpcUpdateNodeHistory(int, params OpcValue[])Initializes a new instance of the OpcUpdateNodeHistory class using the nodeId and values specified.
OpcUpdateNodeHistory(string, int, IEnumerable<OpcValue>)Initializes a new instance of the OpcUpdateNodeHistory class using the nodeId, namespaceIndex and values specified.
OpcUpdateNodeHistory(string, int, params OpcValue[])Initializes a new instance of the OpcUpdateNodeHistory class using the nodeId, namespaceIndex and values specified.
OpcUpdateNodeHistory(int, int, IEnumerable<OpcValue>)Initializes a new instance of the OpcUpdateNodeHistory class using the nodeId, namespaceIndex and values specified.
OpcUpdateNodeHistory(int, int, params OpcValue[])Initializes a new instance of the OpcUpdateNodeHistory class using the nodeId, namespaceIndex and values specified.

OpcUpdateNodeHistory(OpcNodeId, IEnumerable<OpcValue>) ​

Initializes a new instance of the OpcUpdateNodeHistory class using the nodeId and values specified.

csharp
public OpcUpdateNodeHistory(OpcNodeId nodeId, IEnumerable<OpcValue> values)
vbnet
Public Sub New(nodeId As OpcNodeId, values As IEnumerable(Of OpcValue))

Parameters

NameTypeDescription
nodeIdOpcNodeIdThe OpcNodeId of the node in whose history the values are to be updated.
valuesIEnumerable<OpcValue>The values to update in the history of the node.

Exceptions

ExceptionCondition
ArgumentExceptionThe nodeId is a null identifier (see IsNull).
ArgumentNullExceptionThe nodeId or values is a null reference (Nothing in Visual Basic).

OpcUpdateNodeHistory(OpcNodeId, params OpcValue[]) ​

Initializes a new instance of the OpcUpdateNodeHistory class using the nodeId and values specified.

csharp
public OpcUpdateNodeHistory(OpcNodeId nodeId, params OpcValue[] values)
vbnet
Public Sub New(nodeId As OpcNodeId, ParamArray values As OpcValue())

Parameters

NameTypeDescription
nodeIdOpcNodeIdThe OpcNodeId of the node in whose history the values are to be updated.
valuesparams OpcValue[]The values to update in the history of the node.

Exceptions

ExceptionCondition
ArgumentExceptionThe nodeId is a null identifier (see IsNull).
ArgumentNullExceptionThe nodeId or values is a null reference (Nothing in Visual Basic).

OpcUpdateNodeHistory(string, IEnumerable<OpcValue>) ​

Initializes a new instance of the OpcUpdateNodeHistory class using the nodeId and values specified.

csharp
public OpcUpdateNodeHistory(string nodeId, IEnumerable<OpcValue> values)
vbnet
Public Sub New(nodeId As String, values As IEnumerable(Of OpcValue))

Parameters

NameTypeDescription
nodeIdStringThe textual node identifier of the node in whose history the values are to be updated.
valuesIEnumerable<OpcValue>The values to update in the history of the node.

Exceptions

ExceptionCondition
ArgumentExceptionThe nodeId is a null reference (Nothing in Visual Basic) or equals Empty, which results in a null identifier (see IsNull).
ArgumentNullExceptionThe values is a null reference (Nothing in Visual Basic).
FormatExceptionThe nodeId is not a valid node identifier expression (see Parse) and AlwaysParseStringIdentifiers is false.

OpcUpdateNodeHistory(string, params OpcValue[]) ​

Initializes a new instance of the OpcUpdateNodeHistory class using the nodeId and values specified.

csharp
public OpcUpdateNodeHistory(string nodeId, params OpcValue[] values)
vbnet
Public Sub New(nodeId As String, ParamArray values As OpcValue())

Parameters

NameTypeDescription
nodeIdStringThe textual node identifier of the node in whose history the values are to be updated.
valuesparams OpcValue[]The values to update in the history of the node.

Exceptions

ExceptionCondition
ArgumentExceptionThe nodeId is a null reference (Nothing in Visual Basic) or equals Empty, which results in a null identifier (see IsNull).
ArgumentNullExceptionThe values is a null reference (Nothing in Visual Basic).
FormatExceptionThe nodeId is not a valid node identifier expression (see Parse) and AlwaysParseStringIdentifiers is false.

OpcUpdateNodeHistory(int, IEnumerable<OpcValue>) ​

Initializes a new instance of the OpcUpdateNodeHistory class using the nodeId and values specified.

csharp
public OpcUpdateNodeHistory(int nodeId, IEnumerable<OpcValue> values)
vbnet
Public Sub New(nodeId As Integer, values As IEnumerable(Of OpcValue))

Parameters

NameTypeDescription
nodeIdInt32The numeric node identifier of the node in whose history the values are to be updated.
valuesIEnumerable<OpcValue>The values to update in the history of the node.

Exceptions

ExceptionCondition
ArgumentExceptionThe node identifier specified by nodeId is a null identifier (see IsNull).
ArgumentNullExceptionThe values is a null reference (Nothing in Visual Basic).

OpcUpdateNodeHistory(int, params OpcValue[]) ​

Initializes a new instance of the OpcUpdateNodeHistory class using the nodeId and values specified.

csharp
public OpcUpdateNodeHistory(int nodeId, params OpcValue[] values)
vbnet
Public Sub New(nodeId As Integer, ParamArray values As OpcValue())

Parameters

NameTypeDescription
nodeIdInt32The numeric node identifier of the node in whose history the values are to be updated.
valuesparams OpcValue[]The values to update in the history of the node.

Exceptions

ExceptionCondition
ArgumentExceptionThe node identifier specified by nodeId is a null identifier (see IsNull).
ArgumentNullExceptionThe values is a null reference (Nothing in Visual Basic).

OpcUpdateNodeHistory(string, int, IEnumerable<OpcValue>) ​

Initializes a new instance of the OpcUpdateNodeHistory class using the nodeId, namespaceIndex and values specified.

csharp
public OpcUpdateNodeHistory(
    string nodeId,
    int namespaceIndex,
    IEnumerable<OpcValue> values)
vbnet
Public Sub New(
    nodeId As String,
    namespaceIndex As Integer,
    values As IEnumerable(Of OpcValue))

Parameters

NameTypeDescription
nodeIdStringThe textual node identifier of the node in whose history the values are to be updated.
namespaceIndexInt32The index of the namespace within that the node with the nodeId specified can be located.
valuesIEnumerable<OpcValue>The values to update in the history of the node.

Exceptions

ExceptionCondition
ArgumentExceptionThe node identifier specified by nodeId and namespaceIndex is a null identifier (see IsNull).
ArgumentNullExceptionThe values is a null reference (Nothing in Visual Basic).

OpcUpdateNodeHistory(string, int, params OpcValue[]) ​

Initializes a new instance of the OpcUpdateNodeHistory class using the nodeId, namespaceIndex and values specified.

csharp
public OpcUpdateNodeHistory(
    string nodeId,
    int namespaceIndex,
    params OpcValue[] values)
vbnet
Public Sub New(
    nodeId As String,
    namespaceIndex As Integer,
    ParamArray values As OpcValue())

Parameters

NameTypeDescription
nodeIdStringThe textual node identifier of the node in whose history the values are to be updated.
namespaceIndexInt32The index of the namespace within that the node with the nodeId specified can be located.
valuesparams OpcValue[]The values to update in the history of the node.

Exceptions

ExceptionCondition
ArgumentExceptionThe node identifier specified by nodeId and namespaceIndex is a null identifier (see IsNull).
ArgumentNullExceptionThe values is a null reference (Nothing in Visual Basic).

OpcUpdateNodeHistory(int, int, IEnumerable<OpcValue>) ​

Initializes a new instance of the OpcUpdateNodeHistory class using the nodeId, namespaceIndex and values specified.

csharp
public OpcUpdateNodeHistory(
    int nodeId,
    int namespaceIndex,
    IEnumerable<OpcValue> values)
vbnet
Public Sub New(
    nodeId As Integer,
    namespaceIndex As Integer,
    values As IEnumerable(Of OpcValue))

Parameters

NameTypeDescription
nodeIdInt32The numeric node identifier of the node in whose history the values are to be updated.
namespaceIndexInt32The index of the namespace within that the node with the nodeId specified can be located.
valuesIEnumerable<OpcValue>The values to update in the history of the node.

Exceptions

ExceptionCondition
ArgumentExceptionThe node identifier specified by nodeId and namespaceIndex is a null identifier (see IsNull).
ArgumentNullExceptionThe values is a null reference (Nothing in Visual Basic).

OpcUpdateNodeHistory(int, int, params OpcValue[]) ​

Initializes a new instance of the OpcUpdateNodeHistory class using the nodeId, namespaceIndex and values specified.

csharp
public OpcUpdateNodeHistory(
    int nodeId,
    int namespaceIndex,
    params OpcValue[] values)
vbnet
Public Sub New(
    nodeId As Integer,
    namespaceIndex As Integer,
    ParamArray values As OpcValue())

Parameters

NameTypeDescription
nodeIdInt32The numeric node identifier of the node in whose history the values are to be updated.
namespaceIndexInt32The index of the namespace within that the node with the nodeId specified can be located.
valuesparams OpcValue[]The values to update in the history of the node.

Exceptions

ExceptionCondition
ArgumentExceptionThe node identifier specified by nodeId and namespaceIndex is a null identifier (see IsNull).
ArgumentNullExceptionThe values is a null reference (Nothing in Visual Basic).

Properties ​

UpdateType ​

Gets the kind of change the command performs on the history of the node.

csharp
public OpcHistoryUpdateType UpdateType { get; protected set; }
vbnet
Public Property UpdateType As OpcHistoryUpdateType

Property value

OpcHistoryUpdateType

The OpcHistoryUpdateType defined by the derived command, such as Create for an OpcCreateNodeHistory command.

Remarks

For an instance of the OpcUpdateNodeHistory class itself the property provides the value 0, which is not defined by OpcHistoryUpdateType. The command then performs the change defined by Update.