Skip to content

Reference

OpcClient.DeleteNodeHistory Method

Deletes all raw historical values of the node identified by the nodeId specified.

Reference

OpcClient.DeleteNodeHistory 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
DeleteNodeHistory(OpcNodeId)Deletes all raw historical values of the node identified by the nodeId specified.
DeleteNodeHistory(OpcNodeId, DateTime?)Deletes the raw historical values of the node identified by the nodeId specified beginning at the startTime specified.
DeleteNodeHistory(OpcNodeId, DateTime?, DateTime?)Deletes the raw historical values of the node identified by the nodeId specified within the period defined by the startTime and endTime specified.
DeleteNodeHistory(string)Deletes all raw historical values of the node identified by the nodeId specified.
DeleteNodeHistory(string, DateTime?)Deletes the raw historical values of the node identified by the nodeId specified beginning at the startTime specified.
DeleteNodeHistory(string, DateTime?, DateTime?)Deletes the raw historical values of the node identified by the nodeId specified within the period defined by the startTime and endTime specified.
DeleteNodeHistory(int)Deletes all raw historical values of the node identified by the nodeId specified.
DeleteNodeHistory(int, DateTime?)Deletes the raw historical values of the node identified by the nodeId specified beginning at the startTime specified.
DeleteNodeHistory(int, DateTime?, DateTime?)Deletes the raw historical values of the node identified by the nodeId specified within the period defined by the startTime and endTime specified.
DeleteNodeHistory(string, int)Deletes all raw historical values of the node identified by the nodeId specified.
DeleteNodeHistory(string, int, DateTime?)Deletes the raw historical values of the node identified by the nodeId specified beginning at the startTime specified.
DeleteNodeHistory(string, int, DateTime?, DateTime?)Deletes the raw historical values of the node identified by the nodeId specified within the period defined by the startTime and endTime specified.
DeleteNodeHistory(int, int)Deletes all raw historical values of the node identified by the nodeId specified.
DeleteNodeHistory(int, int, DateTime?)Deletes the raw historical values of the node identified by the nodeId specified beginning at the startTime specified.
DeleteNodeHistory(int, int, DateTime?, DateTime?)Deletes the raw historical values of the node identified by the nodeId specified within the period defined by the startTime and endTime specified.
DeleteNodeHistory(OpcDeleteNodeHistory)Deletes raw 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.

DeleteNodeHistory(OpcNodeId) ​

Deletes all raw historical values of the node identified by the nodeId specified.

csharp
public OpcStatusCollection DeleteNodeHistory(OpcNodeId nodeId)
vbnet
Public Function DeleteNodeHistory(nodeId As OpcNodeId) As OpcStatusCollection

Parameters

NameTypeDescription
nodeIdOpcNodeIdThe OpcNodeId of the node whose history is to be updated.

Returns

OpcStatusCollection

An OpcStatusCollection with the OpcStatus the server reports for the deletion.

Exceptions

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

Remarks

The period deleted begins at MinValue and ends at MaxValue.

DeleteNodeHistory(OpcNodeId, DateTime?) ​

Deletes the raw historical values of the node identified by the nodeId specified beginning at the startTime specified.

csharp
public OpcStatusCollection DeleteNodeHistory(
    OpcNodeId nodeId,
    DateTime? startTime)
vbnet
Public Function DeleteNodeHistory(
    nodeId As OpcNodeId,
    startTime As Date?) As OpcStatusCollection

Parameters

NameTypeDescription
nodeIdOpcNodeIdThe OpcNodeId of the node whose history is to be updated.
startTimeNullable<DateTime>The beginning of the period to delete or a null reference (Nothing in Visual Basic) to delete beginning at MinValue.

Returns

OpcStatusCollection

An OpcStatusCollection with the OpcStatus the server reports for the deletion.

Exceptions

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

Remarks

The period deleted ends at MaxValue.

DeleteNodeHistory(OpcNodeId, DateTime?, DateTime?) ​

Deletes the raw historical values of the node identified by the nodeId specified within the period defined by the startTime and endTime specified.

csharp
public OpcStatusCollection DeleteNodeHistory(
    OpcNodeId nodeId,
    DateTime? startTime,
    DateTime? endTime)
vbnet
Public Function DeleteNodeHistory(
    nodeId As OpcNodeId,
    startTime As Date?,
    endTime As Date?) As OpcStatusCollection

Parameters

NameTypeDescription
nodeIdOpcNodeIdThe OpcNodeId of the node whose history is to be updated.
startTimeNullable<DateTime>The beginning of the period to delete or a null reference (Nothing in Visual Basic) to delete beginning at MinValue.
endTimeNullable<DateTime>The end of the period to delete or a null reference (Nothing in Visual Basic) to delete up to MaxValue.

Returns

OpcStatusCollection

An OpcStatusCollection with the OpcStatus the server reports for the deletion.

Exceptions

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

DeleteNodeHistory(string) ​

Deletes all raw historical values of the node identified by the nodeId specified.

csharp
public OpcStatusCollection DeleteNodeHistory(string nodeId)
vbnet
Public Function DeleteNodeHistory(nodeId As String) As OpcStatusCollection

Parameters

NameTypeDescription
nodeIdStringThe textual node identifier of the node whose history is to be updated.

Returns

OpcStatusCollection

An OpcStatusCollection with the OpcStatus the server reports for the deletion.

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.

Remarks

The period deleted begins at MinValue and ends at MaxValue.

DeleteNodeHistory(string, DateTime?) ​

Deletes the raw historical values of the node identified by the nodeId specified beginning at the startTime specified.

csharp
public OpcStatusCollection DeleteNodeHistory(string nodeId, DateTime? startTime)
vbnet
Public Function DeleteNodeHistory(
    nodeId As String,
    startTime As Date?) As OpcStatusCollection

Parameters

NameTypeDescription
nodeIdStringThe textual node identifier of the node whose history is to be updated.
startTimeNullable<DateTime>The beginning of the period to delete or a null reference (Nothing in Visual Basic) to delete beginning at MinValue.

Returns

OpcStatusCollection

An OpcStatusCollection with the OpcStatus the server reports for the deletion.

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.

Remarks

The period deleted ends at MaxValue.

DeleteNodeHistory(string, DateTime?, DateTime?) ​

Deletes the raw historical values of the node identified by the nodeId specified within the period defined by the startTime and endTime specified.

csharp
public OpcStatusCollection DeleteNodeHistory(
    string nodeId,
    DateTime? startTime,
    DateTime? endTime)
vbnet
Public Function DeleteNodeHistory(
    nodeId As String,
    startTime As Date?,
    endTime As Date?) As OpcStatusCollection

Parameters

NameTypeDescription
nodeIdStringThe textual node identifier of the node whose history is to be updated.
startTimeNullable<DateTime>The beginning of the period to delete or a null reference (Nothing in Visual Basic) to delete beginning at MinValue.
endTimeNullable<DateTime>The end of the period to delete or a null reference (Nothing in Visual Basic) to delete up to MaxValue.

Returns

OpcStatusCollection

An OpcStatusCollection with the OpcStatus the server reports for the deletion.

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.

DeleteNodeHistory(int) ​

Deletes all raw historical values of the node identified by the nodeId specified.

csharp
public OpcStatusCollection DeleteNodeHistory(int nodeId)
vbnet
Public Function DeleteNodeHistory(nodeId As Integer) As OpcStatusCollection

Parameters

NameTypeDescription
nodeIdInt32The numeric node identifier of the node whose history is to be updated.

Returns

OpcStatusCollection

An OpcStatusCollection with the OpcStatus the server reports for the deletion.

Exceptions

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

Remarks

The period deleted begins at MinValue and ends at MaxValue.

DeleteNodeHistory(int, DateTime?) ​

Deletes the raw historical values of the node identified by the nodeId specified beginning at the startTime specified.

csharp
public OpcStatusCollection DeleteNodeHistory(int nodeId, DateTime? startTime)
vbnet
Public Function DeleteNodeHistory(
    nodeId As Integer,
    startTime As Date?) As OpcStatusCollection

Parameters

NameTypeDescription
nodeIdInt32The numeric node identifier of the node whose history is to be updated.
startTimeNullable<DateTime>The beginning of the period to delete or a null reference (Nothing in Visual Basic) to delete beginning at MinValue.

Returns

OpcStatusCollection

An OpcStatusCollection with the OpcStatus the server reports for the deletion.

Exceptions

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

Remarks

The period deleted ends at MaxValue.

DeleteNodeHistory(int, DateTime?, DateTime?) ​

Deletes the raw historical values of the node identified by the nodeId specified within the period defined by the startTime and endTime specified.

csharp
public OpcStatusCollection DeleteNodeHistory(
    int nodeId,
    DateTime? startTime,
    DateTime? endTime)
vbnet
Public Function DeleteNodeHistory(
    nodeId As Integer,
    startTime As Date?,
    endTime As Date?) As OpcStatusCollection

Parameters

NameTypeDescription
nodeIdInt32The numeric node identifier of the node whose history is to be updated.
startTimeNullable<DateTime>The beginning of the period to delete or a null reference (Nothing in Visual Basic) to delete beginning at MinValue.
endTimeNullable<DateTime>The end of the period to delete or a null reference (Nothing in Visual Basic) to delete up to MaxValue.

Returns

OpcStatusCollection

An OpcStatusCollection with the OpcStatus the server reports for the deletion.

Exceptions

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

DeleteNodeHistory(string, int) ​

Deletes all raw historical values of the node identified by the nodeId specified.

csharp
public OpcStatusCollection DeleteNodeHistory(string nodeId, int namespaceIndex)
vbnet
Public Function DeleteNodeHistory(
    nodeId As String,
    namespaceIndex As Integer) 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.

Returns

OpcStatusCollection

An OpcStatusCollection with the OpcStatus the server reports for the deletion.

Exceptions

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

Remarks

The period deleted begins at MinValue and ends at MaxValue.

DeleteNodeHistory(string, int, DateTime?) ​

Deletes the raw historical values of the node identified by the nodeId specified beginning at the startTime specified.

csharp
public OpcStatusCollection DeleteNodeHistory(
    string nodeId,
    int namespaceIndex,
    DateTime? startTime)
vbnet
Public Function DeleteNodeHistory(
    nodeId As String,
    namespaceIndex As Integer,
    startTime 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.
startTimeNullable<DateTime>The beginning of the period to delete or a null reference (Nothing in Visual Basic) to delete beginning at MinValue.

Returns

OpcStatusCollection

An OpcStatusCollection with the OpcStatus the server reports for the deletion.

Exceptions

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

Remarks

The period deleted ends at MaxValue.

DeleteNodeHistory(string, int, DateTime?, DateTime?) ​

Deletes the raw historical values of the node identified by the nodeId specified within the period defined by the startTime and endTime specified.

csharp
public OpcStatusCollection DeleteNodeHistory(
    string nodeId,
    int namespaceIndex,
    DateTime? startTime,
    DateTime? endTime)
vbnet
Public Function DeleteNodeHistory(
    nodeId As String,
    namespaceIndex As Integer,
    startTime As Date?,
    endTime 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.
startTimeNullable<DateTime>The beginning of the period to delete or a null reference (Nothing in Visual Basic) to delete beginning at MinValue.
endTimeNullable<DateTime>The end of the period to delete or a null reference (Nothing in Visual Basic) to delete up to MaxValue.

Returns

OpcStatusCollection

An OpcStatusCollection with the OpcStatus the server reports for the deletion.

Exceptions

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

DeleteNodeHistory(int, int) ​

Deletes all raw historical values of the node identified by the nodeId specified.

csharp
public OpcStatusCollection DeleteNodeHistory(int nodeId, int namespaceIndex)
vbnet
Public Function DeleteNodeHistory(
    nodeId As Integer,
    namespaceIndex As Integer) 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.

Returns

OpcStatusCollection

An OpcStatusCollection with the OpcStatus the server reports for the deletion.

Exceptions

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

Remarks

The period deleted begins at MinValue and ends at MaxValue.

DeleteNodeHistory(int, int, DateTime?) ​

Deletes the raw historical values of the node identified by the nodeId specified beginning at the startTime specified.

csharp
public OpcStatusCollection DeleteNodeHistory(
    int nodeId,
    int namespaceIndex,
    DateTime? startTime)
vbnet
Public Function DeleteNodeHistory(
    nodeId As Integer,
    namespaceIndex As Integer,
    startTime 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.
startTimeNullable<DateTime>The beginning of the period to delete or a null reference (Nothing in Visual Basic) to delete beginning at MinValue.

Returns

OpcStatusCollection

An OpcStatusCollection with the OpcStatus the server reports for the deletion.

Exceptions

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

Remarks

The period deleted ends at MaxValue.

DeleteNodeHistory(int, int, DateTime?, DateTime?) ​

Deletes the raw historical values of the node identified by the nodeId specified within the period defined by the startTime and endTime specified.

csharp
public OpcStatusCollection DeleteNodeHistory(
    int nodeId,
    int namespaceIndex,
    DateTime? startTime,
    DateTime? endTime)
vbnet
Public Function DeleteNodeHistory(
    nodeId As Integer,
    namespaceIndex As Integer,
    startTime As Date?,
    endTime 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.
startTimeNullable<DateTime>The beginning of the period to delete or a null reference (Nothing in Visual Basic) to delete beginning at MinValue.
endTimeNullable<DateTime>The end of the period to delete or a null reference (Nothing in Visual Basic) to delete up to MaxValue.

Returns

OpcStatusCollection

An OpcStatusCollection with the OpcStatus the server reports for the deletion.

Exceptions

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

DeleteNodeHistory(OpcDeleteNodeHistory) ​

Deletes raw historical values of the node as defined by the command specified.

csharp
public OpcStatusCollection DeleteNodeHistory(OpcDeleteNodeHistory command)
vbnet
Public Function DeleteNodeHistory(
    command As OpcDeleteNodeHistory) As OpcStatusCollection

Parameters

NameTypeDescription
commandOpcDeleteNodeHistoryThe OpcDeleteNodeHistory command which defines the node and the period of the raw 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).