Skip to content

Reference

OpcClient.ReplaceNodeHistory Method

Replaces existing entries of the history of the node as defined by the command specified.

Reference

OpcClient.ReplaceNodeHistory 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

15 overloads

OverloadDescription
ReplaceNodeHistory(OpcReplaceNodeHistory)Replaces existing entries of the history of the node as defined by the command specified.
ReplaceNodeHistory(OpcNodeId, OpcValue)Replaces an existing entry of the history of the node identified by the nodeId specified by the value specified.
ReplaceNodeHistory(OpcNodeId, IEnumerable<OpcValue>)Replaces existing entries of the history of the node identified by the nodeId specified by the values specified.
ReplaceNodeHistory(OpcNodeId, params OpcValue[])Replaces existing entries of the history of the node identified by the nodeId specified by the values specified.
ReplaceNodeHistory(string, OpcValue)Replaces an existing entry of the history of the node identified by the nodeId specified by the value specified.
ReplaceNodeHistory(string, IEnumerable<OpcValue>)Replaces existing entries of the history of the node identified by the nodeId specified by the values specified.
ReplaceNodeHistory(string, params OpcValue[])Replaces existing entries of the history of the node identified by the nodeId specified by the values specified.
ReplaceNodeHistory(int, OpcValue)Replaces an existing entry of the history of the node identified by the nodeId specified by the value specified.
ReplaceNodeHistory(int, IEnumerable<OpcValue>)Replaces existing entries of the history of the node identified by the nodeId specified by the values specified.
ReplaceNodeHistory(int, params OpcValue[])Replaces existing entries of the history of the node identified by the nodeId specified by the values specified.
ReplaceNodeHistory(string, int, OpcValue)Replaces an existing entry of the history of the node identified by the nodeId specified by the value specified.
ReplaceNodeHistory(string, int, IEnumerable<OpcValue>)Replaces existing entries of the history of the node identified by the nodeId specified by the values specified.
ReplaceNodeHistory(string, int, params OpcValue[])Replaces existing entries of the history of the node identified by the nodeId specified by the values specified.
ReplaceNodeHistory(int, int, OpcValue)Replaces an existing entry of the history of the node identified by the nodeId specified by the value specified.
ReplaceNodeHistory(int, int, IEnumerable<OpcValue>)Replaces existing entries of the history of the node identified by the nodeId specified by the values specified.

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.

ReplaceNodeHistory(OpcReplaceNodeHistory) ​

Replaces existing entries of the history of the node as defined by the command specified.

csharp
public OpcStatusCollection ReplaceNodeHistory(OpcReplaceNodeHistory command)
vbnet
Public Function ReplaceNodeHistory(
    command As OpcReplaceNodeHistory) As OpcStatusCollection

Parameters

NameTypeDescription
commandOpcReplaceNodeHistoryThe OpcReplaceNodeHistory command which defines the node and the values to replace the existing entries of its history 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).

ReplaceNodeHistory(OpcNodeId, OpcValue) ​

Replaces an existing entry of the history of the node identified by the nodeId specified by the value specified.

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

Parameters

NameTypeDescription
nodeIdOpcNodeIdThe OpcNodeId of the node whose history is to be updated.
valueOpcValueThe OpcValue to replace the existing entry of the history of the node 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).

ReplaceNodeHistory(OpcNodeId, IEnumerable<OpcValue>) ​

Replaces existing entries of the history of the node identified by the nodeId specified by the values specified.

csharp
public OpcStatusCollection ReplaceNodeHistory(
    OpcNodeId nodeId,
    IEnumerable<OpcValue> values)
vbnet
Public Function ReplaceNodeHistory(
    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 replace the existing entries of the history of the node 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).

ReplaceNodeHistory(OpcNodeId, params OpcValue[]) ​

Replaces existing entries of the history of the node identified by the nodeId specified by the values specified.

csharp
public OpcStatusCollection ReplaceNodeHistory(
    OpcNodeId nodeId,
    params OpcValue[] values)
vbnet
Public Function ReplaceNodeHistory(
    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 replace the existing entries of the history of the node 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).

ReplaceNodeHistory(string, OpcValue) ​

Replaces an existing entry of the history of the node identified by the nodeId specified by the value specified.

csharp
public OpcStatus ReplaceNodeHistory(string nodeId, OpcValue value)
vbnet
Public Function ReplaceNodeHistory(
    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 replace the existing entry of the history of the node 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.

ReplaceNodeHistory(string, IEnumerable<OpcValue>) ​

Replaces existing entries of the history of the node identified by the nodeId specified by the values specified.

csharp
public OpcStatusCollection ReplaceNodeHistory(
    string nodeId,
    IEnumerable<OpcValue> values)
vbnet
Public Function ReplaceNodeHistory(
    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 replace the existing entries of the history of the node 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.

ReplaceNodeHistory(string, params OpcValue[]) ​

Replaces existing entries of the history of the node identified by the nodeId specified by the values specified.

csharp
public OpcStatusCollection ReplaceNodeHistory(
    string nodeId,
    params OpcValue[] values)
vbnet
Public Function ReplaceNodeHistory(
    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 replace the existing entries of the history of the node 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.

ReplaceNodeHistory(int, OpcValue) ​

Replaces an existing entry of the history of the node identified by the nodeId specified by the value specified.

csharp
public OpcStatus ReplaceNodeHistory(int nodeId, OpcValue value)
vbnet
Public Function ReplaceNodeHistory(
    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 replace the existing entry of the history of the node 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).

ReplaceNodeHistory(int, IEnumerable<OpcValue>) ​

Replaces existing entries of the history of the node identified by the nodeId specified by the values specified.

csharp
public OpcStatusCollection ReplaceNodeHistory(
    int nodeId,
    IEnumerable<OpcValue> values)
vbnet
Public Function ReplaceNodeHistory(
    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 replace the existing entries of the history of the node 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).

ReplaceNodeHistory(int, params OpcValue[]) ​

Replaces existing entries of the history of the node identified by the nodeId specified by the values specified.

csharp
public OpcStatusCollection ReplaceNodeHistory(
    int nodeId,
    params OpcValue[] values)
vbnet
Public Function ReplaceNodeHistory(
    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 replace the existing entries of the history of the node 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).

ReplaceNodeHistory(string, int, OpcValue) ​

Replaces an existing entry of the history of the node identified by the nodeId specified by the value specified.

csharp
public OpcStatus ReplaceNodeHistory(
    string nodeId,
    int namespaceIndex,
    OpcValue value)
vbnet
Public Function ReplaceNodeHistory(
    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 replace the existing entry of the history of the node 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).

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

Replaces existing entries of the history of the node identified by the nodeId specified by the values specified.

csharp
public OpcStatusCollection ReplaceNodeHistory(
    string nodeId,
    int namespaceIndex,
    IEnumerable<OpcValue> values)
vbnet
Public Function ReplaceNodeHistory(
    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 replace the existing entries of the history of the node 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).

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

Replaces existing entries of the history of the node identified by the nodeId specified by the values specified.

csharp
public OpcStatusCollection ReplaceNodeHistory(
    string nodeId,
    int namespaceIndex,
    params OpcValue[] values)
vbnet
Public Function ReplaceNodeHistory(
    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 replace the existing entries of the history of the node 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).

ReplaceNodeHistory(int, int, OpcValue) ​

Replaces an existing entry of the history of the node identified by the nodeId specified by the value specified.

csharp
public OpcStatus ReplaceNodeHistory(
    int nodeId,
    int namespaceIndex,
    OpcValue value)
vbnet
Public Function ReplaceNodeHistory(
    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 replace the existing entry of the history of the node 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).

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

Replaces existing entries of the history of the node identified by the nodeId specified by the values specified.

csharp
public OpcStatusCollection ReplaceNodeHistory(
    int nodeId,
    int namespaceIndex,
    IEnumerable<OpcValue> values)
vbnet
Public Function ReplaceNodeHistory(
    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 replace the existing entries of the history of the node 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).