Please ensure Javascript is enabled for purposes of website accessibility
Powered by Zoomin Software. For more details please contactZoomin

AF SDK Reference

AFEventFrameSearchMode Enumeration

  • Last UpdatedNov 18, 2025
  • 3 minute read
AFEventFrameSearchMode Enumeration
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 nameValueDescription
None0 This is the value of an uninitialized search mode.
BackwardFromStartTime1 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".
ForwardFromStartTime2 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".
BackwardFromEndTime3 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".
ForwardFromEndTime4 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".
BackwardInProgress5 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".
ForwardInProgress6 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.

Version Information

AFSDK


See Also

In This Topic
TitleResults for “How to create a CRG?”Also Available in