Skip to content

Reference

OpcClient.DeleteNodeHistoryAtTime Method

Deletes historical values at specific timestamps of the node as defined by the command specified.

Reference

OpcClient.DeleteNodeHistoryAtTime 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
DeleteNodeHistoryAtTime(OpcNodeId, DateTime)Deletes the historical value of the node identified by the nodeId specified at the time specified.
DeleteNodeHistoryAtTime(OpcNodeId, IEnumerable<DateTime>)Deletes the historical values of the node identified by the nodeId specified at the times specified.
DeleteNodeHistoryAtTime(OpcNodeId, params DateTime[])Deletes the historical values of the node identified by the nodeId specified at the times specified.
DeleteNodeHistoryAtTime(string, DateTime)Deletes the historical value of the node identified by the nodeId specified at the time specified.
DeleteNodeHistoryAtTime(string, IEnumerable<DateTime>)Deletes the historical values of the node identified by the nodeId specified at the times specified.
DeleteNodeHistoryAtTime(string, params DateTime[])Deletes the historical values of the node identified by the nodeId specified at the times specified.
DeleteNodeHistoryAtTime(int, DateTime)Deletes the historical value of the node identified by the nodeId specified at the time specified.
DeleteNodeHistoryAtTime(int, IEnumerable<DateTime>)Deletes the historical values of the node identified by the nodeId specified at the times specified.
DeleteNodeHistoryAtTime(int, params DateTime[])Deletes the historical values of the node identified by the nodeId specified at the times specified.
DeleteNodeHistoryAtTime(string, int, DateTime)Deletes the historical value of the node identified by the nodeId specified at the time specified.
DeleteNodeHistoryAtTime(string, int, IEnumerable<DateTime>)Deletes the historical values of the node identified by the nodeId specified at the times specified.
DeleteNodeHistoryAtTime(string, int, params DateTime[])Deletes the historical values of the node identified by the nodeId specified at the times specified.
DeleteNodeHistoryAtTime(int, int, DateTime)Deletes the historical value of the node identified by the nodeId specified at the time specified.
DeleteNodeHistoryAtTime(int, int, IEnumerable<DateTime>)Deletes the historical values of the node identified by the nodeId specified at the times specified.
DeleteNodeHistoryAtTime(int, int, params DateTime[])Deletes the historical values of the node identified by the nodeId specified at the times specified.
DeleteNodeHistoryAtTime(OpcDeleteNodeHistoryAtTime)Deletes historical values at specific timestamps 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.

DeleteNodeHistoryAtTime(OpcNodeId, DateTime) ​

Deletes the historical value of the node identified by the nodeId specified at the time specified.

csharp
public OpcStatus DeleteNodeHistoryAtTime(OpcNodeId nodeId, DateTime time)
vbnet
Public Function DeleteNodeHistoryAtTime(
    nodeId As OpcNodeId,
    time As Date) As OpcStatus

Parameters

NameTypeDescription
nodeIdOpcNodeIdThe OpcNodeId of the node whose history is to be updated.
timeDateTimeThe timestamp of the value to delete.

Returns

OpcStatus

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

Exceptions

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

DeleteNodeHistoryAtTime(OpcNodeId, IEnumerable<DateTime>) ​

Deletes the historical values of the node identified by the nodeId specified at the times specified.

csharp
public OpcStatusCollection DeleteNodeHistoryAtTime(
    OpcNodeId nodeId,
    IEnumerable<DateTime> times)
vbnet
Public Function DeleteNodeHistoryAtTime(
    nodeId As OpcNodeId,
    times As IEnumerable(Of Date)) As OpcStatusCollection

Parameters

NameTypeDescription
nodeIdOpcNodeIdThe OpcNodeId of the node whose history is to be updated.
timesIEnumerable<DateTime>A sequence of the timestamps of the values to delete.

Returns

OpcStatusCollection

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

Exceptions

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

DeleteNodeHistoryAtTime(OpcNodeId, params DateTime[]) ​

Deletes the historical values of the node identified by the nodeId specified at the times specified.

csharp
public OpcStatusCollection DeleteNodeHistoryAtTime(
    OpcNodeId nodeId,
    params DateTime[] times)
vbnet
Public Function DeleteNodeHistoryAtTime(
    nodeId As OpcNodeId,
    ParamArray times As Date()) As OpcStatusCollection

Parameters

NameTypeDescription
nodeIdOpcNodeIdThe OpcNodeId of the node whose history is to be updated.
timesparams DateTime[]An array of the timestamps of the values to delete.

Returns

OpcStatusCollection

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

Exceptions

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

DeleteNodeHistoryAtTime(string, DateTime) ​

Deletes the historical value of the node identified by the nodeId specified at the time specified.

csharp
public OpcStatus DeleteNodeHistoryAtTime(string nodeId, DateTime time)
vbnet
Public Function DeleteNodeHistoryAtTime(
    nodeId As String,
    time As Date) As OpcStatus

Parameters

NameTypeDescription
nodeIdStringThe textual node identifier of the node whose history is to be updated.
timeDateTimeThe timestamp of the value to delete.

Returns

OpcStatus

An OpcStatusCollection with the OpcStatus the server reports for the time or, if it reports no status per timestamp, 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).
FormatExceptionThe nodeId is not a valid node identifier expression (see Parse) and AlwaysParseStringIdentifiers is false.

DeleteNodeHistoryAtTime(string, IEnumerable<DateTime>) ​

Deletes the historical values of the node identified by the nodeId specified at the times specified.

csharp
public OpcStatusCollection DeleteNodeHistoryAtTime(
    string nodeId,
    IEnumerable<DateTime> times)
vbnet
Public Function DeleteNodeHistoryAtTime(
    nodeId As String,
    times As IEnumerable(Of Date)) As OpcStatusCollection

Parameters

NameTypeDescription
nodeIdStringThe textual node identifier of the node whose history is to be updated.
timesIEnumerable<DateTime>A sequence of the timestamps of the values to delete.

Returns

OpcStatusCollection

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

DeleteNodeHistoryAtTime(string, params DateTime[]) ​

Deletes the historical values of the node identified by the nodeId specified at the times specified.

csharp
public OpcStatusCollection DeleteNodeHistoryAtTime(
    string nodeId,
    params DateTime[] times)
vbnet
Public Function DeleteNodeHistoryAtTime(
    nodeId As String,
    ParamArray times As Date()) As OpcStatusCollection

Parameters

NameTypeDescription
nodeIdStringThe textual node identifier of the node whose history is to be updated.
timesparams DateTime[]An array of the timestamps of the values to delete.

Returns

OpcStatusCollection

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

DeleteNodeHistoryAtTime(int, DateTime) ​

Deletes the historical value of the node identified by the nodeId specified at the time specified.

csharp
public OpcStatusCollection DeleteNodeHistoryAtTime(int nodeId, DateTime time)
vbnet
Public Function DeleteNodeHistoryAtTime(
    nodeId As Integer,
    time As Date) As OpcStatusCollection

Parameters

NameTypeDescription
nodeIdInt32The numeric node identifier of the node whose history is to be updated.
timeDateTimeThe timestamp of the value to delete.

Returns

OpcStatusCollection

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

Exceptions

ExceptionCondition
ArgumentExceptionThe nodeId is equals zero, which results in a null identifier (see IsNull).

DeleteNodeHistoryAtTime(int, IEnumerable<DateTime>) ​

Deletes the historical values of the node identified by the nodeId specified at the times specified.

csharp
public OpcStatusCollection DeleteNodeHistoryAtTime(
    int nodeId,
    IEnumerable<DateTime> times)
vbnet
Public Function DeleteNodeHistoryAtTime(
    nodeId As Integer,
    times As IEnumerable(Of Date)) As OpcStatusCollection

Parameters

NameTypeDescription
nodeIdInt32The numeric node identifier of the node whose history is to be updated.
timesIEnumerable<DateTime>A sequence of the timestamps of the values to delete.

Returns

OpcStatusCollection

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

Exceptions

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

DeleteNodeHistoryAtTime(int, params DateTime[]) ​

Deletes the historical values of the node identified by the nodeId specified at the times specified.

csharp
public OpcStatusCollection DeleteNodeHistoryAtTime(
    int nodeId,
    params DateTime[] times)
vbnet
Public Function DeleteNodeHistoryAtTime(
    nodeId As Integer,
    ParamArray times As Date()) As OpcStatusCollection

Parameters

NameTypeDescription
nodeIdInt32The numeric node identifier of the node whose history is to be updated.
timesparams DateTime[]An array of the timestamps of the values to delete.

Returns

OpcStatusCollection

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

Exceptions

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

DeleteNodeHistoryAtTime(string, int, DateTime) ​

Deletes the historical value of the node identified by the nodeId specified at the time specified.

csharp
public OpcStatus DeleteNodeHistoryAtTime(
    string nodeId,
    int namespaceIndex,
    DateTime time)
vbnet
Public Function DeleteNodeHistoryAtTime(
    nodeId As String,
    namespaceIndex As Integer,
    time As Date) 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.
timeDateTimeThe timestamp of the value to delete.

Returns

OpcStatus

An OpcStatusCollection with the OpcStatus the server reports for the time or, if it reports no status per timestamp, 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).

DeleteNodeHistoryAtTime(string, int, IEnumerable<DateTime>) ​

Deletes the historical values of the node identified by the nodeId specified at the times specified.

csharp
public OpcStatusCollection DeleteNodeHistoryAtTime(
    string nodeId,
    int namespaceIndex,
    IEnumerable<DateTime> times)
vbnet
Public Function DeleteNodeHistoryAtTime(
    nodeId As String,
    namespaceIndex As Integer,
    times As IEnumerable(Of Date)) 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.
timesIEnumerable<DateTime>A sequence of the timestamps of the values to delete.

Returns

OpcStatusCollection

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

DeleteNodeHistoryAtTime(string, int, params DateTime[]) ​

Deletes the historical values of the node identified by the nodeId specified at the times specified.

csharp
public OpcStatusCollection DeleteNodeHistoryAtTime(
    string nodeId,
    int namespaceIndex,
    params DateTime[] times)
vbnet
Public Function DeleteNodeHistoryAtTime(
    nodeId As String,
    namespaceIndex As Integer,
    ParamArray times As Date()) 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.
timesparams DateTime[]An array of the timestamps of the values to delete.

Returns

OpcStatusCollection

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

DeleteNodeHistoryAtTime(int, int, DateTime) ​

Deletes the historical value of the node identified by the nodeId specified at the time specified.

csharp
public OpcStatus DeleteNodeHistoryAtTime(
    int nodeId,
    int namespaceIndex,
    DateTime time)
vbnet
Public Function DeleteNodeHistoryAtTime(
    nodeId As Integer,
    namespaceIndex As Integer,
    time As Date) 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.
timeDateTimeThe timestamp of the value to delete.

Returns

OpcStatus

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

Exceptions

ExceptionCondition
ArgumentExceptionThe nodeId is equals zero, which results in a null identifier (see IsNull).

DeleteNodeHistoryAtTime(int, int, IEnumerable<DateTime>) ​

Deletes the historical values of the node identified by the nodeId specified at the times specified.

csharp
public OpcStatusCollection DeleteNodeHistoryAtTime(
    int nodeId,
    int namespaceIndex,
    IEnumerable<DateTime> times)
vbnet
Public Function DeleteNodeHistoryAtTime(
    nodeId As Integer,
    namespaceIndex As Integer,
    times As IEnumerable(Of Date)) 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.
timesIEnumerable<DateTime>A sequence of the timestamps of the values to delete.

Returns

OpcStatusCollection

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

Exceptions

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

DeleteNodeHistoryAtTime(int, int, params DateTime[]) ​

Deletes the historical values of the node identified by the nodeId specified at the times specified.

csharp
public OpcStatusCollection DeleteNodeHistoryAtTime(
    int nodeId,
    int namespaceIndex,
    params DateTime[] times)
vbnet
Public Function DeleteNodeHistoryAtTime(
    nodeId As Integer,
    namespaceIndex As Integer,
    ParamArray times As Date()) 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.
timesparams DateTime[]An array of the timestamps of the values to delete.

Returns

OpcStatusCollection

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

Exceptions

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

DeleteNodeHistoryAtTime(OpcDeleteNodeHistoryAtTime) ​

Deletes historical values at specific timestamps of the node as defined by the command specified.

csharp
public OpcStatusCollection DeleteNodeHistoryAtTime(
    OpcDeleteNodeHistoryAtTime command)
vbnet
Public Function DeleteNodeHistoryAtTime(
    command As OpcDeleteNodeHistoryAtTime) As OpcStatusCollection

Parameters

NameTypeDescription
commandOpcDeleteNodeHistoryAtTimeThe OpcDeleteNodeHistoryAtTime command which defines the node and the timestamps of the values to delete from 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).