AFEventFrameSearchMode Enumeration
- Last UpdatedNov 18, 2025
- 3 minute read
- PI System
- AF SDK 2024 R2
- Developer
The event frame search mode is an enumeration of the possible values for
specifying the search criteria for event frames from a time.
Namespace: OSIsoft.AF.EventFrame
Assembly: OSIsoft.AFSDK (in OSIsoft.AFSDK.dll) Version: 3.1.1.1182
Syntax
public enum AFEventFrameSearchMode
Public Enumeration AFEventFrameSearchMode Dim instance As AFEventFrameSearchMode
public enum class AFEventFrameSearchMode
type AFEventFrameSearchMode
Members
| Member name | Value | Description | |
|---|---|---|---|
| None | 0 | This is the value of an uninitialized search mode. | |
| BackwardFromStartTime | 1 | Event frames with a start time less than the time specified in the search (moving backward in time) are returned from the search. Also known as "Starting Before". | |
| ForwardFromStartTime | 2 | Event frames with a start time greater than or equal to the time specified in the search (moving forward in time) are returned from the search. Also known as "Starting After". | |
| BackwardFromEndTime | 3 | Event frames with an end time less than or equal to the time specified in the search (moving backward in time) are returned from the search. Also known as "Ending Before". | |
| ForwardFromEndTime | 4 | Event frames with an end time greater than the time specified in the search (moving forward in time) are returned from the search. Also know as "Ending After". | |
| BackwardInProgress | 5 | Event frames with a start time less than the time specified in the search (moving backward in time) that are still in progress (an end time set to MaxValue) are returned from the search. Also known as "Starting Before and In Progress". | |
| ForwardInProgress | 6 | Event frames with a start time greater than or equal to the time specified in the search (moving forward in time) that are still in progress (an end time set to MaxValue) are returned from the search. Also known as "Starting After and In Progress". |
Remarks
The event frame search mode specifies direction in time for the search from either the start or end time of the event frame. The EndTimeSearch feature can be checked to determine if BackwardFromEndTime and ForwardFromEndTime are supported. The InProgressSearch feature can be checked to determine if BackwardInProgress and ForwardInProgress are supported.
The diagram below shows several possible time spans for the value of an AFEventFrame and illustrates which would be returned for each of the search modes.
