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 : OpcHistoryValuevbnet
Public Class OpcNodeHistory(Of T As OpcHistoryValue)Type parameters
| Name | Description |
|---|---|
T | The 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
| Name | Description |
|---|---|
| OpcNodeHistory | Initializes a new instance of the OpcNodeHistory< |
Properties
| Name | Description |
|---|---|
| Capacity | Gets the maximum number of values the history keeps. |
| Count | Gets the number of values in the history. |
| Enable | Gets or sets a value indicating whether the history raises the events Added, Removed and Replaced. |
| EndTime | Gets the latest timestamp of the values in the history. |
| StartTime | Gets the earliest timestamp of the values in the history. |
Methods
| Name | Description |
|---|---|
| Add | Adds the value specified to the history and raises the Added event. |
| AddRange | Adds the values specified to the history and raises the Added event. |
| Clear | Removes all values from the history and raises the Removed event. |
| Contains | Determines whether the history contains a value at the timestamp specified. |
| Enumerate | Enumerates the values of the history in ascending order of their timestamps. |
| GetEnumerator | Returns an enumerator which iterates through the values of the history in ascending order of their timestamps. |
| OnAdded | Raises the Added event using the specified event data. |
| OnRemoved | Raises the Removed event using the specified event data. |
| OnReplaced | Raises the Replaced event using the specified event data. |
| Remove | Removes the value specified from the history and raises the Removed event. |
| RemoveAt | Removes the value at the index specified in the ascending order of the timestamps and raises the Removed event. |
| RemoveRange | |
| Replace | Replaces the value at the timestamp of the value specified with the value and raises the Replaced event. |
Events
| Name | Description |
|---|---|
| Added | Occurs after values have been added to the history. |
| Removed | Occurs after values have been removed from the history, also if a value has been removed because the history reached its Capacity. |
| Replaced | Occurs after a value of the history has been replaced. |
Indexers
| Name | Description |
|---|---|
| Item | Gets or sets the value at the index specified in the ascending order of the timestamps. |
Applies to
| Package | Versions |
|---|---|
| Opc. | v2. |

