Skip to content

Reference

OpcClient.UpdateNodeHistory Method

Updates the history of the node as defined by the command specified.

Reference

OpcClient.UpdateNodeHistory Method ​

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

16 overloads

OverloadDescription
UpdateNodeHistory(OpcNodeHistoryCommand)Updates the history of the node as defined by the command specified.
UpdateNodeHistory(OpcUpdateNodeHistory)Updates the history of the node as defined by the command specified.
UpdateNodeHistory(OpcNodeId, OpcValue)Updates the history of the node identified by the nodeId specified by inserting the value specified as a new entry or by replacing the existing entry by it.
UpdateNodeHistory(OpcNodeId, IEnumerable<OpcValue>)Updates the history of the node identified by the nodeId specified by inserting the values specified as new entries or by replacing the existing entries by them.
UpdateNodeHistory(OpcNodeId, params OpcValue[])Updates the history of the node identified by the nodeId specified by inserting the values specified as new entries or by replacing the existing entries by them.
UpdateNodeHistory(string, OpcValue)Updates the history of the node identified by the nodeId specified by inserting the value specified as a new entry or by replacing the existing entry by it.
UpdateNodeHistory(string, IEnumerable<OpcValue>)Updates the history of the node identified by the nodeId specified by inserting the values specified as new entries or by replacing the existing entries by them.
UpdateNodeHistory(string, params OpcValue[])Updates the history of the node identified by the nodeId specified by inserting the values specified as new entries or by replacing the existing entries by them.
UpdateNodeHistory(int, OpcValue)Updates the history of the node identified by the nodeId specified by inserting the value specified as a new entry or by replacing the existing entry by it.
UpdateNodeHistory(int, IEnumerable<OpcValue>)Updates the history of the node identified by the nodeId specified by inserting the values specified as new entries or by replacing the existing entries by them.
UpdateNodeHistory(int, params OpcValue[])Updates the history of the node identified by the nodeId specified by inserting the values specified as new entries or by replacing the existing entries by them.
UpdateNodeHistory(string, int, OpcValue)Updates the history of the node identified by the nodeId specified by inserting the value specified as a new entry or by replacing the existing entry by it.
UpdateNodeHistory(string, int, IEnumerable<OpcValue>)Updates the history of the node identified by the nodeId specified by inserting the values specified as new entries or by replacing the existing entries by them.
UpdateNodeHistory(string, int, params OpcValue[])Updates the history of the node identified by the nodeId specified by inserting the values specified as new entries or by replacing the existing entries by them.
UpdateNodeHistory(int, int, OpcValue)Updates the history of the node identified by the nodeId specified by inserting the value specified as a new entry or by replacing the existing entry by it.
UpdateNodeHistory(int, int, IEnumerable<OpcValue>)Updates the history of the node identified by the nodeId specified by inserting the values specified as new entries or by replacing the existing entries by them.

Exceptions (all overloads)

ExceptionCondition
OpcExceptionThe client is not connected to the server or the service execution failed upon different circumstances; for more details see exception details.
ObjectDisposedExceptionThe object has been disposed of.

UpdateNodeHistory(OpcNodeHistoryCommand) ​

Updates the history of the node as defined by the command specified.

csharp
public OpcStatusCollection UpdateNodeHistory(OpcNodeHistoryCommand command)
vbnet
Public Function UpdateNodeHistory(
    command As OpcNodeHistoryCommand) As OpcStatusCollection

Parameters

NameTypeDescription
commandOpcNodeHistoryCommandThe OpcNodeHistoryCommand command which defines the node and the update to perform on its history.

Returns

OpcStatusCollection

An OpcStatusCollection with the OpcStatus instances the server reports for the command or, if it reports no status per value, only with the status for the node.

Exceptions

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

UpdateNodeHistory(OpcUpdateNodeHistory) ​

Updates the history of the node as defined by the command specified.

csharp
public OpcStatusCollection UpdateNodeHistory(OpcUpdateNodeHistory command)
vbnet
Public Function UpdateNodeHistory(
    command As OpcUpdateNodeHistory) As OpcStatusCollection

Parameters

NameTypeDescription
commandOpcUpdateNodeHistoryThe OpcUpdateNodeHistory command which defines the node and the values to insert into its history or to replace the existing entries with.

Returns

OpcStatusCollection

An OpcStatusCollection with the OpcStatus instances the server reports for the command or, if it reports no status per value, only with the status for the node.

Exceptions

ExceptionCondition
ArgumentNullExceptionThe command or one of the values of the command is a null reference (Nothing in Visual Basic).

UpdateNodeHistory(OpcNodeId, OpcValue) ​

Updates the history of the node identified by the nodeId specified by inserting the value specified as a new entry or by replacing the existing entry by it.

csharp
public OpcStatus UpdateNodeHistory(OpcNodeId nodeId, OpcValue value)
vbnet
Public Function UpdateNodeHistory(
    nodeId As OpcNodeId,
    value As OpcValue) As OpcStatus

Parameters

NameTypeDescription
nodeIdOpcNodeIdThe OpcNodeId of the node whose history is to be updated.
valueOpcValueThe OpcValue to insert into the history of the node or to replace the existing entry with.

Returns

OpcStatus

The OpcStatus the server reports for the value or, if it reports no status per value, for the node.

Exceptions

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

UpdateNodeHistory(OpcNodeId, IEnumerable<OpcValue>) ​

Updates the history of the node identified by the nodeId specified by inserting the values specified as new entries or by replacing the existing entries by them.

csharp
public OpcStatusCollection UpdateNodeHistory(
    OpcNodeId nodeId,
    IEnumerable<OpcValue> values)
vbnet
Public Function UpdateNodeHistory(
    nodeId As OpcNodeId,
    values As IEnumerable(Of OpcValue)) As OpcStatusCollection

Parameters

NameTypeDescription
nodeIdOpcNodeIdThe OpcNodeId of the node whose history is to be updated.
valuesIEnumerable<OpcValue>A sequence of the OpcValue instances to insert into the history of the node or to replace the existing entries with.

Returns

OpcStatusCollection

An OpcStatusCollection with the OpcStatus the server reports for each value or, if it reports no status per value, only with the status for the node.

Exceptions

ExceptionCondition
ArgumentExceptionThe nodeId is a null identifier (see IsNull).
ArgumentNullExceptionThe nodeId or the values sequence or one of its items is a null reference (Nothing in Visual Basic).

UpdateNodeHistory(OpcNodeId, params OpcValue[]) ​

Updates the history of the node identified by the nodeId specified by inserting the values specified as new entries or by replacing the existing entries by them.

csharp
public OpcStatusCollection UpdateNodeHistory(
    OpcNodeId nodeId,
    params OpcValue[] values)
vbnet
Public Function UpdateNodeHistory(
    nodeId As OpcNodeId,
    ParamArray values As OpcValue()) As OpcStatusCollection

Parameters

NameTypeDescription
nodeIdOpcNodeIdThe OpcNodeId of the node whose history is to be updated.
valuesparams OpcValue[]An array of the OpcValue instances to insert into the history of the node or to replace the existing entries with.

Returns

OpcStatusCollection

An OpcStatusCollection with the OpcStatus the server reports for each value or, if it reports no status per value, only with the status for the node.

Exceptions

ExceptionCondition
ArgumentExceptionThe nodeId is a null identifier (see IsNull).
ArgumentNullExceptionThe nodeId or the values array or one of its items is a null reference (Nothing in Visual Basic).

UpdateNodeHistory(string, OpcValue) ​

Updates the history of the node identified by the nodeId specified by inserting the value specified as a new entry or by replacing the existing entry by it.

csharp
public OpcStatus UpdateNodeHistory(string nodeId, OpcValue value)
vbnet
Public Function UpdateNodeHistory(
    nodeId As String,
    value As OpcValue) As OpcStatus

Parameters

NameTypeDescription
nodeIdStringThe textual node identifier of the node whose history is to be updated.
valueOpcValueThe OpcValue to insert into the history of the node or to replace the existing entry with.

Returns

OpcStatus

The OpcStatus the server reports for the value or, if it reports no status per value, for 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 value is a null reference (Nothing in Visual Basic).
FormatExceptionThe nodeId is not a valid node identifier expression (see Parse) and AlwaysParseStringIdentifiers is false.

UpdateNodeHistory(string, IEnumerable<OpcValue>) ​

Updates the history of the node identified by the nodeId specified by inserting the values specified as new entries or by replacing the existing entries by them.

csharp
public OpcStatusCollection UpdateNodeHistory(
    string nodeId,
    IEnumerable<OpcValue> values)
vbnet
Public Function UpdateNodeHistory(
    nodeId As String,
    values As IEnumerable(Of OpcValue)) As OpcStatusCollection

Parameters

NameTypeDescription
nodeIdStringThe textual node identifier of the node whose history is to be updated.
valuesIEnumerable<OpcValue>A sequence of the OpcValue instances to insert into the history of the node or to replace the existing entries with.

Returns

OpcStatusCollection

An OpcStatusCollection with the OpcStatus the server reports for each value or, if it reports no status per value, only with the status for 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 sequence or one of its items is a null reference (Nothing in Visual Basic).
FormatExceptionThe nodeId is not a valid node identifier expression (see Parse) and AlwaysParseStringIdentifiers is false.

UpdateNodeHistory(string, params OpcValue[]) ​

Updates the history of the node identified by the nodeId specified by inserting the values specified as new entries or by replacing the existing entries by them.

csharp
public OpcStatusCollection UpdateNodeHistory(
    string nodeId,
    params OpcValue[] values)
vbnet
Public Function UpdateNodeHistory(
    nodeId As String,
    ParamArray values As OpcValue()) As OpcStatusCollection

Parameters

NameTypeDescription
nodeIdStringThe textual node identifier of the node whose history is to be updated.
valuesparams OpcValue[]An array of the OpcValue instances to insert into the history of the node or to replace the existing entries with.

Returns

OpcStatusCollection

An OpcStatusCollection with the OpcStatus the server reports for each value or, if it reports no status per value, only with the status for 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 array or one of its items is a null reference (Nothing in Visual Basic).
FormatExceptionThe nodeId is not a valid node identifier expression (see Parse) and AlwaysParseStringIdentifiers is false.

UpdateNodeHistory(int, OpcValue) ​

Updates the history of the node identified by the nodeId specified by inserting the value specified as a new entry or by replacing the existing entry by it.

csharp
public OpcStatus UpdateNodeHistory(int nodeId, OpcValue value)
vbnet
Public Function UpdateNodeHistory(
    nodeId As Integer,
    value As OpcValue) As OpcStatus

Parameters

NameTypeDescription
nodeIdInt32The numeric node identifier of the node whose history is to be updated.
valueOpcValueThe OpcValue to insert into the history of the node or to replace the existing entry with.

Returns

OpcStatus

The OpcStatus the server reports for the value or, if it reports no status per value, for the node.

Exceptions

ExceptionCondition
ArgumentExceptionThe nodeId is equals zero, which results in a null identifier (see IsNull).
ArgumentNullExceptionThe value is a null reference (Nothing in Visual Basic).

UpdateNodeHistory(int, IEnumerable<OpcValue>) ​

Updates the history of the node identified by the nodeId specified by inserting the values specified as new entries or by replacing the existing entries by them.

csharp
public OpcStatusCollection UpdateNodeHistory(
    int nodeId,
    IEnumerable<OpcValue> values)
vbnet
Public Function UpdateNodeHistory(
    nodeId As Integer,
    values As IEnumerable(Of OpcValue)) As OpcStatusCollection

Parameters

NameTypeDescription
nodeIdInt32The numeric node identifier of the node whose history is to be updated.
valuesIEnumerable<OpcValue>A sequence of the OpcValue instances to insert into the history of the node or to replace the existing entries with.

Returns

OpcStatusCollection

An OpcStatusCollection with the OpcStatus the server reports for each value or, if it reports no status per value, only with the status for the node.

Exceptions

ExceptionCondition
ArgumentExceptionThe nodeId is equals zero, which results in a null identifier (see IsNull).
ArgumentNullExceptionThe values sequence or one of its items is a null reference (Nothing in Visual Basic).

UpdateNodeHistory(int, params OpcValue[]) ​

Updates the history of the node identified by the nodeId specified by inserting the values specified as new entries or by replacing the existing entries by them.

csharp
public OpcStatusCollection UpdateNodeHistory(
    int nodeId,
    params OpcValue[] values)
vbnet
Public Function UpdateNodeHistory(
    nodeId As Integer,
    ParamArray values As OpcValue()) As OpcStatusCollection

Parameters

NameTypeDescription
nodeIdInt32The numeric node identifier of the node whose history is to be updated.
valuesparams OpcValue[]An array of the OpcValue instances to insert into the history of the node or to replace the existing entries with.

Returns

OpcStatusCollection

An OpcStatusCollection with the OpcStatus the server reports for each value or, if it reports no status per value, only with the status for the node.

Exceptions

ExceptionCondition
ArgumentExceptionThe nodeId is equals zero, which results in a null identifier (see IsNull).
ArgumentNullExceptionThe values array or one of its items is a null reference (Nothing in Visual Basic).

UpdateNodeHistory(string, int, OpcValue) ​

Updates the history of the node identified by the nodeId specified by inserting the value specified as a new entry or by replacing the existing entry by it.

csharp
public OpcStatus UpdateNodeHistory(
    string nodeId,
    int namespaceIndex,
    OpcValue value)
vbnet
Public Function UpdateNodeHistory(
    nodeId As String,
    namespaceIndex As Integer,
    value As OpcValue) As OpcStatus

Parameters

NameTypeDescription
nodeIdStringThe textual node identifier of the node whose history is to be updated.
namespaceIndexInt32The index of the namespace within that the node with the nodeId specified can be located.
valueOpcValueThe OpcValue to insert into the history of the node or to replace the existing entry with.

Returns

OpcStatus

The OpcStatus the server reports for the value or, if it reports no status per value, for 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 value is a null reference (Nothing in Visual Basic).

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

Updates the history of the node identified by the nodeId specified by inserting the values specified as new entries or by replacing the existing entries by them.

csharp
public OpcStatusCollection UpdateNodeHistory(
    string nodeId,
    int namespaceIndex,
    IEnumerable<OpcValue> values)
vbnet
Public Function UpdateNodeHistory(
    nodeId As String,
    namespaceIndex As Integer,
    values As IEnumerable(Of OpcValue)) As OpcStatusCollection

Parameters

NameTypeDescription
nodeIdStringThe textual node identifier of the node whose history is to be updated.
namespaceIndexInt32The index of the namespace within that the node with the nodeId specified can be located.
valuesIEnumerable<OpcValue>A sequence of the OpcValue instances to insert into the history of the node or to replace the existing entries with.

Returns

OpcStatusCollection

An OpcStatusCollection with the OpcStatus the server reports for each value or, if it reports no status per value, only with the status for 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 sequence or one of its items is a null reference (Nothing in Visual Basic).

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

Updates the history of the node identified by the nodeId specified by inserting the values specified as new entries or by replacing the existing entries by them.

csharp
public OpcStatusCollection UpdateNodeHistory(
    string nodeId,
    int namespaceIndex,
    params OpcValue[] values)
vbnet
Public Function UpdateNodeHistory(
    nodeId As String,
    namespaceIndex As Integer,
    ParamArray values As OpcValue()) As OpcStatusCollection

Parameters

NameTypeDescription
nodeIdStringThe textual node identifier of the node whose history is to be updated.
namespaceIndexInt32The index of the namespace within that the node with the nodeId specified can be located.
valuesparams OpcValue[]An array of the OpcValue instances to insert into the history of the node or to replace the existing entries with.

Returns

OpcStatusCollection

An OpcStatusCollection with the OpcStatus the server reports for each value or, if it reports no status per value, only with the status for 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 array or one of its items is a null reference (Nothing in Visual Basic).

UpdateNodeHistory(int, int, OpcValue) ​

Updates the history of the node identified by the nodeId specified by inserting the value specified as a new entry or by replacing the existing entry by it.

csharp
public OpcStatus UpdateNodeHistory(
    int nodeId,
    int namespaceIndex,
    OpcValue value)
vbnet
Public Function UpdateNodeHistory(
    nodeId As Integer,
    namespaceIndex As Integer,
    value As OpcValue) As OpcStatus

Parameters

NameTypeDescription
nodeIdInt32The numeric node identifier of the node whose history is to be updated.
namespaceIndexInt32The index of the namespace within that the node with the nodeId specified can be located.
valueOpcValueThe OpcValue to insert into the history of the node or to replace the existing entry with.

Returns

OpcStatus

The OpcStatus the server reports for the value or, if it reports no status per value, for the node.

Exceptions

ExceptionCondition
ArgumentExceptionThe nodeId is equals zero, which results in a null identifier (see IsNull).
ArgumentNullExceptionThe value is a null reference (Nothing in Visual Basic).

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

Updates the history of the node identified by the nodeId specified by inserting the values specified as new entries or by replacing the existing entries by them.

csharp
public OpcStatusCollection UpdateNodeHistory(
    int nodeId,
    int namespaceIndex,
    IEnumerable<OpcValue> values)
vbnet
Public Function UpdateNodeHistory(
    nodeId As Integer,
    namespaceIndex As Integer,
    values As IEnumerable(Of OpcValue)) As OpcStatusCollection

Parameters

NameTypeDescription
nodeIdInt32The numeric node identifier of the node whose history is to be updated.
namespaceIndexInt32The index of the namespace within that the node with the nodeId specified can be located.
valuesIEnumerable<OpcValue>A sequence of the OpcValue instances to insert into the history of the node or to replace the existing entries with.

Returns

OpcStatusCollection

An OpcStatusCollection with the OpcStatus the server reports for each value or, if it reports no status per value, only with the status for the node.

Exceptions

ExceptionCondition
ArgumentExceptionThe nodeId is equals zero, which results in a null identifier (see IsNull).
ArgumentNullExceptionThe values sequence or one of its items is a null reference (Nothing in Visual Basic).