Skip to content

Reference

OpcClient.UpdateNodesHistory Method

Updates the history of the nodes as defined by the commands specified using a single history update service request.

Reference

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

4 overloads

OverloadDescription
UpdateNodesHistory(IEnumerable<OpcNodeHistoryCommand>)Updates the history of the nodes as defined by the commands specified using a single history update service request.
UpdateNodesHistory(params OpcNodeHistoryCommand[])Updates the history of the nodes as defined by the commands specified using a single history update service request.
UpdateNodesHistory(IEnumerable<OpcUpdateNodeHistory>)Updates the history of the nodes as defined by the commands specified using a single history update service request.
UpdateNodesHistory(params OpcUpdateNodeHistory[])Updates the history of the nodes as defined by the commands specified using a single history update service request.

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.

UpdateNodesHistory(IEnumerable<OpcNodeHistoryCommand>) ​

Updates the history of the nodes as defined by the commands specified using a single history update service request.

csharp
public IDictionary<OpcNodeId, OpcStatusCollection> UpdateNodesHistory(
    IEnumerable<OpcNodeHistoryCommand> commands)
vbnet
Public Function UpdateNodesHistory(
    commands As IEnumerable(Of OpcNodeHistoryCommand)) As IDictionary(Of OpcNodeId, OpcStatusCollection)

Parameters

NameTypeDescription
commandsIEnumerable<OpcNodeHistoryCommand>A sequence of OpcNodeHistoryCommand commands, each defining the node and the update to perform on its history.

Returns

IDictionary<OpcNodeId, OpcStatusCollection>

A dictionary which provides for each node an OpcStatusCollection with the OpcStatus instances the server reports for the command.

Exceptions

ExceptionCondition
ArgumentNullExceptionThe commands sequence or one of its items is a null reference (Nothing in Visual Basic).
LicenseExceptionThe license is expired.

Remarks

In case there several commands refer to the same node, the status results of these commands are combined in the collection of that node in the order of the commands. In case there the server reports no status per value for a command, the collection holds the status of the command for the node instead.

UpdateNodesHistory(params OpcNodeHistoryCommand[]) ​

Updates the history of the nodes as defined by the commands specified using a single history update service request.

csharp
public IDictionary<OpcNodeId, OpcStatusCollection> UpdateNodesHistory(
    params OpcNodeHistoryCommand[] commands)
vbnet
Public Function UpdateNodesHistory(
    ParamArray commands As OpcNodeHistoryCommand()) As IDictionary(Of OpcNodeId, OpcStatusCollection)

Parameters

NameTypeDescription
commandsparams OpcNodeHistoryCommand[]An array of OpcNodeHistoryCommand commands, each defining the node and the update to perform on its history.

Returns

IDictionary<OpcNodeId, OpcStatusCollection>

A dictionary which provides for each node an OpcStatusCollection with the OpcStatus instances the server reports for the command.

Exceptions

ExceptionCondition
ArgumentNullExceptionThe commands array or one of its items is a null reference (Nothing in Visual Basic).

Remarks

In case there several commands refer to the same node, the status results of these commands are combined in the collection of that node in the order of the commands. In case there the server reports no status per value for a command, the collection holds the status of the command for the node instead.

UpdateNodesHistory(IEnumerable<OpcUpdateNodeHistory>) ​

Updates the history of the nodes as defined by the commands specified using a single history update service request.

csharp
public IDictionary<OpcNodeId, OpcStatusCollection> UpdateNodesHistory(
    IEnumerable<OpcUpdateNodeHistory> commands)
vbnet
Public Function UpdateNodesHistory(
    commands As IEnumerable(Of OpcUpdateNodeHistory)) As IDictionary(Of OpcNodeId, OpcStatusCollection)

Parameters

NameTypeDescription
commandsIEnumerable<OpcUpdateNodeHistory>A sequence of OpcUpdateNodeHistory commands, each defining the node and the values to insert into its history or to replace the existing entries with.

Returns

IDictionary<OpcNodeId, OpcStatusCollection>

A dictionary which provides for each node an OpcStatusCollection with the OpcStatus instances the server reports for the command.

Exceptions

ExceptionCondition
ArgumentNullExceptionThe commands sequence or one of its items or one of the values of a command is a null reference (Nothing in Visual Basic).
LicenseExceptionThe license is expired.

Remarks

In case there several commands refer to the same node, the status results of these commands are combined in the collection of that node in the order of the commands. In case there the server reports no status per value for a command, the collection holds the status of the command for the node instead.

UpdateNodesHistory(params OpcUpdateNodeHistory[]) ​

Updates the history of the nodes as defined by the commands specified using a single history update service request.

csharp
public IDictionary<OpcNodeId, OpcStatusCollection> UpdateNodesHistory(
    params OpcUpdateNodeHistory[] commands)
vbnet
Public Function UpdateNodesHistory(
    ParamArray commands As OpcUpdateNodeHistory()) As IDictionary(Of OpcNodeId, OpcStatusCollection)

Parameters

NameTypeDescription
commandsparams OpcUpdateNodeHistory[]An array of OpcUpdateNodeHistory commands, each defining the node and the values to insert into its history or to replace the existing entries with.

Returns

IDictionary<OpcNodeId, OpcStatusCollection>

A dictionary which provides for each node an OpcStatusCollection with the OpcStatus instances the server reports for the command.

Exceptions

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

Remarks

In case there several commands refer to the same node, the status results of these commands are combined in the collection of that node in the order of the commands. In case there the server reports no status per value for a command, the collection holds the status of the command for the node instead.