Skip to content

Reference

OpcClient.CreateNodeHistory Method

Creates historical values of the node as defined by the command specified.

Reference

OpcClient.CreateNodeHistory 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
CreateNodeHistory(OpcNodeId, OpcValue)Creates a historical value of the node identified by the nodeId specified by inserting the value specified as a new entry into the history of the node.
CreateNodeHistory(OpcNodeId, IEnumerable<OpcValue>)Creates historical values of the node identified by the nodeId specified by inserting the values specified as new entries into the history of the node.
CreateNodeHistory(OpcNodeId, params OpcValue[])Creates historical values of the node identified by the nodeId specified by inserting the values specified as new entries into the history of the node.
CreateNodeHistory(string, OpcValue)Creates a historical value of the node identified by the nodeId specified by inserting the value specified as a new entry into the history of the node.
CreateNodeHistory(string, IEnumerable<OpcValue>)Creates historical values of the node identified by the nodeId specified by inserting the values specified as new entries into the history of the node.
CreateNodeHistory(string, params OpcValue[])Creates historical values of the node identified by the nodeId specified by inserting the values specified as new entries into the history of the node.
CreateNodeHistory(int, OpcValue)Creates a historical value of the node identified by the nodeId specified by inserting the value specified as a new entry into the history of the node.
CreateNodeHistory(int, IEnumerable<OpcValue>)Creates historical values of the node identified by the nodeId specified by inserting the values specified as new entries into the history of the node.
CreateNodeHistory(int, params OpcValue[])Creates historical values of the node identified by the nodeId specified by inserting the values specified as new entries into the history of the node.
CreateNodeHistory(string, int, OpcValue)Creates a historical value of the node identified by the nodeId specified by inserting the value specified as a new entry into the history of the node.
CreateNodeHistory(string, int, IEnumerable<OpcValue>)Creates historical values of the node identified by the nodeId specified by inserting the values specified as new entries into the history of the node.
CreateNodeHistory(string, int, params OpcValue[])Creates historical values of the node identified by the nodeId specified by inserting the values specified as new entries into the history of the node.
CreateNodeHistory(int, int, OpcValue)Creates a historical value of the node identified by the nodeId specified by inserting the value specified as a new entry into the history of the node.
CreateNodeHistory(int, int, IEnumerable<OpcValue>)Creates historical values of the node identified by the nodeId specified by inserting the values specified as new entries into the history of the node.
CreateNodeHistory(OpcCreateNodeHistory)Creates historical values of the node as defined by the command 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.

CreateNodeHistory(OpcNodeId, OpcValue) ​

Creates a historical value of the node identified by the nodeId specified by inserting the value specified as a new entry into the history of the node.

csharp
public OpcStatus CreateNodeHistory(OpcNodeId nodeId, OpcValue value)
vbnet
Public Function CreateNodeHistory(
    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.

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).

CreateNodeHistory(OpcNodeId, IEnumerable<OpcValue>) ​

Creates historical values of the node identified by the nodeId specified by inserting the values specified as new entries into the history of the node.

csharp
public OpcStatusCollection CreateNodeHistory(
    OpcNodeId nodeId,
    IEnumerable<OpcValue> values)
vbnet
Public Function CreateNodeHistory(
    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.

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).

CreateNodeHistory(OpcNodeId, params OpcValue[]) ​

Creates historical values of the node identified by the nodeId specified by inserting the values specified as new entries into the history of the node.

csharp
public OpcStatusCollection CreateNodeHistory(
    OpcNodeId nodeId,
    params OpcValue[] values)
vbnet
Public Function CreateNodeHistory(
    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.

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).

CreateNodeHistory(string, OpcValue) ​

Creates a historical value of the node identified by the nodeId specified by inserting the value specified as a new entry into the history of the node.

csharp
public OpcStatus CreateNodeHistory(string nodeId, OpcValue value)
vbnet
Public Function CreateNodeHistory(
    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.

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.

CreateNodeHistory(string, IEnumerable<OpcValue>) ​

Creates historical values of the node identified by the nodeId specified by inserting the values specified as new entries into the history of the node.

csharp
public OpcStatusCollection CreateNodeHistory(
    string nodeId,
    IEnumerable<OpcValue> values)
vbnet
Public Function CreateNodeHistory(
    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.

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.

CreateNodeHistory(string, params OpcValue[]) ​

Creates historical values of the node identified by the nodeId specified by inserting the values specified as new entries into the history of the node.

csharp
public OpcStatusCollection CreateNodeHistory(
    string nodeId,
    params OpcValue[] values)
vbnet
Public Function CreateNodeHistory(
    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.

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.

CreateNodeHistory(int, OpcValue) ​

Creates a historical value of the node identified by the nodeId specified by inserting the value specified as a new entry into the history of the node.

csharp
public OpcStatus CreateNodeHistory(int nodeId, OpcValue value)
vbnet
Public Function CreateNodeHistory(
    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.

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).

CreateNodeHistory(int, IEnumerable<OpcValue>) ​

Creates historical values of the node identified by the nodeId specified by inserting the values specified as new entries into the history of the node.

csharp
public OpcStatusCollection CreateNodeHistory(
    int nodeId,
    IEnumerable<OpcValue> values)
vbnet
Public Function CreateNodeHistory(
    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.

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).

CreateNodeHistory(int, params OpcValue[]) ​

Creates historical values of the node identified by the nodeId specified by inserting the values specified as new entries into the history of the node.

csharp
public OpcStatusCollection CreateNodeHistory(
    int nodeId,
    params OpcValue[] values)
vbnet
Public Function CreateNodeHistory(
    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.

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).

CreateNodeHistory(string, int, OpcValue) ​

Creates a historical value of the node identified by the nodeId specified by inserting the value specified as a new entry into the history of the node.

csharp
public OpcStatus CreateNodeHistory(
    string nodeId,
    int namespaceIndex,
    OpcValue value)
vbnet
Public Function CreateNodeHistory(
    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.

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).

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

Creates historical values of the node identified by the nodeId specified by inserting the values specified as new entries into the history of the node.

csharp
public OpcStatusCollection CreateNodeHistory(
    string nodeId,
    int namespaceIndex,
    IEnumerable<OpcValue> values)
vbnet
Public Function CreateNodeHistory(
    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.

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).

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

Creates historical values of the node identified by the nodeId specified by inserting the values specified as new entries into the history of the node.

csharp
public OpcStatusCollection CreateNodeHistory(
    string nodeId,
    int namespaceIndex,
    params OpcValue[] values)
vbnet
Public Function CreateNodeHistory(
    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.

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).

CreateNodeHistory(int, int, OpcValue) ​

Creates a historical value of the node identified by the nodeId specified by inserting the value specified as a new entry into the history of the node.

csharp
public OpcStatus CreateNodeHistory(
    int nodeId,
    int namespaceIndex,
    OpcValue value)
vbnet
Public Function CreateNodeHistory(
    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.

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).

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

Creates historical values of the node identified by the nodeId specified by inserting the values specified as new entries into the history of the node.

csharp
public OpcStatusCollection CreateNodeHistory(
    int nodeId,
    int namespaceIndex,
    IEnumerable<OpcValue> values)
vbnet
Public Function CreateNodeHistory(
    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.

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).

CreateNodeHistory(OpcCreateNodeHistory) ​

Creates historical values of the node as defined by the command specified.

csharp
public OpcStatusCollection CreateNodeHistory(OpcCreateNodeHistory command)
vbnet
Public Function CreateNodeHistory(
    command As OpcCreateNodeHistory) As OpcStatusCollection

Parameters

NameTypeDescription
commandOpcCreateNodeHistoryThe OpcCreateNodeHistory command which defines the node and the values to insert into 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 or one of the values of the command is a null reference (Nothing in Visual Basic).