Skip to content

Reference

OpcNodeHistory Class

Represents a history of values kept in memory in ascending order of their timestamps, with at most one value per timestamp.

Reference

OpcNodeHistory<T> Class ​

Namespace
Opc.UaFx.Server
Assembly
Opc.UaFx.Advanced.dll
Package
Opc.UaFx.Advanced v2.59.0
Members
OpcNodeHistory<T> Members

Represents a history of values kept in memory in ascending order of their timestamps, with at most one value per timestamp.

Syntax ​

csharp
public class OpcNodeHistory<T> where T : OpcHistoryValue
vbnet
Public Class OpcNodeHistory(Of T As OpcHistoryValue)

Type parameters ​

NameDescription
TThe type of the values, OpcHistoryValue or a type derived from it.

Inheritance ​

Object → OpcNodeHistory<T>

Implements ​

Remarks ​

The timestamp of a value is its Timestamp; for an OpcModifiedHistoryValue this is the time of its modification.

Constructors ​

NameDescription
OpcNodeHistory6 overloadsInitializes a new instance of the OpcNodeHistory<T> class whose Capacity is -1 (unlimited).

Properties ​

NameDescription
CapacityGets the maximum number of values the history keeps.
CountGets the number of values in the history.
EnableRaisingEventsGets or sets a value indicating whether the history raises the events Added, Removed and Replaced.
EndTimeGets the latest timestamp of the values in the history.
StartTimeGets the earliest timestamp of the values in the history.

Methods ​

NameDescription
AddAdds the value specified to the history and raises the Added event.
AddRange2 overloadsAdds the values specified to the history and raises the Added event.
ClearRemoves all values from the history and raises the Removed event.
Contains2 overloadsDetermines whether the history contains a value at the timestamp specified.
Enumerate3 overloadsEnumerates the values of the history in ascending order of their timestamps.
GetEnumeratorReturns an enumerator which iterates through the values of the history in ascending order of their timestamps.
OnAddedprotected · virtualRaises the Added event using the specified event data.
OnRemovedprotected · virtualRaises the Removed event using the specified event data.
OnReplacedprotected · virtualRaises the Replaced event using the specified event data.
RemoveRemoves the value specified from the history and raises the Removed event.
RemoveAt4 overloadsRemoves the value at the index specified in the ascending order of the timestamps and raises the Removed event.
RemoveRange2 overloads
ReplaceReplaces the value at the timestamp of the value specified with the value and raises the Replaced event.

Events ​

NameDescription
AddedOccurs after values have been added to the history.
RemovedOccurs after values have been removed from the history, also if a value has been removed because the history reached its Capacity.
ReplacedOccurs after a value of the history has been replaced.

Indexers ​

NameDescription
Item2 overloadsGets or sets the value at the index specified in the ascending order of the timestamps.

Applies to ​

PackageVersions
Opc.UaFx.Advancedv2.5–v2.59