AFQueryMode Enumeration
- Last UpdatedNov 18, 2025
- 2 minute read
- PI System
- AF SDK 2024 R2
- Developer
The query mode is an enumeration of the possible values for specifying the
query criteria.
Namespace: OSIsoft.AF.Asset
Assembly: OSIsoft.AFSDK (in OSIsoft.AFSDK.dll) Version: 3.1.1.1182
Syntax
public enum AFQueryMode
Public Enumeration AFQueryMode Dim instance As AFQueryMode
public enum class AFQueryMode
type AFQueryMode
Members
| Member name | Value | Description | |
|---|---|---|---|
| None | 0 | This is the value of an uninitialized query mode. | |
| AtOrBefore | 1 | The returned version where the effective date equals the query date or the next version older than the query date. | |
| AtOrAfter | 2 | The returned version where the effective date equals the query date or the next version newer than the query date. | |
| Before | 3 | The returned version will be the next version older than the query date. | |
| After | 4 | The returned version will be the next version newer than the query date. |
Remarks
The query mode specifies which values are returned relative to the query's
query date.