AFRetrievalMode Enumeration
- Last UpdatedNov 18, 2025
- 2 minute read
- PI System
- AF SDK 2024 R2
- Developer
Defines the possible options for retrieving recorded values from an attribute.
Namespace: OSIsoft.AF.Data
Assembly: OSIsoft.AFSDK (in OSIsoft.AFSDK.dll) Version: 3.1.1.1182
Syntax
public enum AFRetrievalMode
Public Enumeration AFRetrievalMode Dim instance As AFRetrievalMode
public enum class AFRetrievalMode
type AFRetrievalMode
Members
| Member name | Value | Description | |
|---|---|---|---|
| Auto | 0 | Automatically determine the best retrieval mode. | |
| AtOrBefore | 1 | Return a recorded value at the passed time or if no value exists at that time, the previous recorded value. | |
| Before | 6 | Return the first recorded value before the passed time. | |
| AtOrAfter | 2 | Return a recorded value at the passed time or if no value exists at that time, the next recorded value. | |
| After | 7 | Return the first recorded value after the passed time. | |
| Exact | 4 | Return a recorded value at the passed time or return an error if none exists. |
Remarks
| This method, property, or class is not available in the legacy .NET 3.5 version of the SDK. |