Skip to content

Reference

OpcReadEventHistoryDetails Members

Defines the time domain, number of events and additional criteria to use to select events from historical database for one or more nodes.

Reference

OpcReadEventHistoryDetails Members ​

Type
OpcReadEventHistoryDetails
Namespace
Opc.UaFx
Assembly
Opc.UaFx.Advanced.dll
Package
Opc.UaFx.Advanced v2.59.0
Also in
Opc.UaFx.Client

Constructors ​

OpcReadEventHistoryDetails ​

4 overloads · since v2.54

OverloadDescription
OpcReadEventHistoryDetails(int, OpcEventFilter)since v2.54Initializes a new instance of the OpcReadEventHistoryDetails class using the specified numberOfEvents to select the historical events.
OpcReadEventHistoryDetails(DateTime?, int, OpcEventFilter)since v2.54Initializes a new instance of the OpcReadEventHistoryDetails class using the specified startTime and numberOfEvents to use to select the historical events.
OpcReadEventHistoryDetails(DateTime?, DateTime?, int, OpcEventFilter)since v2.54Initializes a new instance of the OpcReadEventHistoryDetails class using the specified startTime, endTime and numberOfEvents to use to select the historical events.
OpcReadEventHistoryDetails(DateTime?, DateTime?, OpcEventFilter)since v2.54Initializes a new instance of the OpcReadEventHistoryDetails class using the specified startTime and endTime to use to select the historical events.

Exceptions (all overloads)

ExceptionCondition
ArgumentNullExceptionThe filter is a null reference (Nothing in Visual Basic).

OpcReadEventHistoryDetails(int, OpcEventFilter) ​

since v2.54

Initializes a new instance of the OpcReadEventHistoryDetails class using the specified numberOfEvents to select the historical events.

csharp
public OpcReadEventHistoryDetails(int numberOfEvents, OpcEventFilter filter)
vbnet
Public Sub New(numberOfEvents As Integer, filter As OpcEventFilter)

Parameters

NameTypeDescription
numberOfEventsInt32The maximum number of events returned for any node over the time range.
filterOpcEventFilter

Exceptions

ExceptionCondition
ArgumentOutOfRangeExceptionThe numberOfEvents is lower or equals zero.

OpcReadEventHistoryDetails(DateTime?, int, OpcEventFilter) ​

since v2.54

Initializes a new instance of the OpcReadEventHistoryDetails class using the specified startTime and numberOfEvents to use to select the historical events.

csharp
public OpcReadEventHistoryDetails(
    DateTime? startTime,
    int numberOfEvents,
    OpcEventFilter filter)
vbnet
Public Sub New(
    startTime As Date?,
    numberOfEvents As Integer,
    filter As OpcEventFilter)

Parameters

NameTypeDescription
startTimeNullable<DateTime>The beginning of the period to read.
numberOfEventsInt32The maximum number of events returned for any node over the time range. If only one time is specified, the time range shall extend to return this number of events.
filterOpcEventFilter

Exceptions

ExceptionCondition
ArgumentExceptionThe startTime is a null reference (Nothing in Visual Basic) or equals MinValue.
ArgumentOutOfRangeExceptionThe numberOfEvents is lower or equals zero.

OpcReadEventHistoryDetails(DateTime?, DateTime?, int, OpcEventFilter) ​

since v2.54

Initializes a new instance of the OpcReadEventHistoryDetails class using the specified startTime, endTime and numberOfEvents to use to select the historical events.

csharp
public OpcReadEventHistoryDetails(
    DateTime? startTime,
    DateTime? endTime,
    int numberOfEvents,
    OpcEventFilter filter)
vbnet
Public Sub New(
    startTime As Date?,
    endTime As Date?,
    numberOfEvents As Integer,
    filter As OpcEventFilter)

Parameters

NameTypeDescription
startTimeNullable<DateTime>The beginning of the period to read or a null reference (Nothing in Visual Basic) if no specific start time is specified. If startTime is not specified and the numberOfEvents is equals zero the endTime needs to be specified.
endTimeNullable<DateTime>The end of the period to read or a null reference (Nothing in Visual Basic) if no specific end time is specified. If endTime is not specified and the numberOfEvents is equals zero the startTime needs to be specified.
numberOfEventsInt32The maximum number of events returned for any node over the time range. If only one time is specified, the time range shall extend to return this number of events.
filterOpcEventFilter

Exceptions

ExceptionCondition
ArgumentExceptionThe startTime and endTime are a null reference (Nothing in Visual Basic) or are equals MinValue and numberOfEvents is lower or equals zero.

OpcReadEventHistoryDetails(DateTime?, DateTime?, OpcEventFilter) ​

since v2.54

Initializes a new instance of the OpcReadEventHistoryDetails class using the specified startTime and endTime to use to select the historical events.

csharp
public OpcReadEventHistoryDetails(
    DateTime? startTime,
    DateTime? endTime,
    OpcEventFilter filter)
vbnet
Public Sub New(startTime As Date?, endTime As Date?, filter As OpcEventFilter)

Parameters

NameTypeDescription
startTimeNullable<DateTime>The beginning of the period to read or a null reference (Nothing in Visual Basic) if no specific start time is specified. If startTime is not specified the endTime needs to be specified.
endTimeNullable<DateTime>The end of the period to read or a null reference (Nothing in Visual Basic) if no specific end time is specified. If endTime is not specified the startTime needs to be specified.
filterOpcEventFilter

Exceptions

ExceptionCondition
ArgumentExceptionThe startTime and endTime are a null reference (Nothing in Visual Basic) or are equals MinValue.

Properties ​

EndTime ​

Gets or sets the end of the period to read.

csharp
public DateTime? EndTime { get; set; }
vbnet
Public Property EndTime As Date?

Property value

Nullable<DateTime>

The DateTime of the end of the period to read or a null reference (Nothing in Visual Basic) if no specific end time is specified.

Remarks

If EndTime is not specified and NumberOfEvents is equals zero the StartTime needs to be specified.

Filter ​

csharp
public OpcEventFilter Filter { get; set; }
vbnet
Public Property Filter As OpcEventFilter

Property value

OpcEventFilter

Exceptions

ExceptionCondition
ArgumentNullException

NumberOfEvents ​

since v2.54

Gets or sets the maximum number of events returned for any node over the time range.

csharp
public int NumberOfEvents { get; set; }
vbnet
Public Property NumberOfEvents As Integer

Property value

Int32

The maximum number of events returned over the time range. The default value is zero and indicates that there is no maximum.

Remarks

If only time (either StartTime or EndTime) is specified, the time range shall extend to return this number of events.

StartTime ​

Gets or sets the beginning of the period to read.

csharp
public DateTime? StartTime { get; set; }
vbnet
Public Property StartTime As Date?

Property value

Nullable<DateTime>

The DateTime of the beginning of the period read or a null reference (Nothing in Visual Basic) if no specific start time is specified.

Remarks

If StartTime is not specified the EndTime needs to be specified.