AFDataReference.SupportedContexts Property
- Last UpdatedNov 18, 2025
- 2 minute read
- PI System
- AF SDK 2024 R2
- Developer
This read-only property specifies which of the data reference contexts are
supported when getting and/or setting values.
Namespace: OSIsoft.AF.Asset
Assembly: OSIsoft.AFSDK (in OSIsoft.AFSDK.dll) Version: 3.1.1.1182
Syntax
public virtual AFDataReferenceContext SupportedContexts { get; }
Public Overridable ReadOnly Property SupportedContexts As AFDataReferenceContext Get Dim instance As AFDataReference Dim value As AFDataReferenceContext value = instance.SupportedContexts
public: virtual property AFDataReferenceContext SupportedContexts { AFDataReferenceContext get (); }
abstract SupportedContexts : AFDataReferenceContext with get override SupportedContexts : AFDataReferenceContext with get
Property Value
Type: AFDataReferenceContextSpecifies which of the data reference contexts are supported. Its value can be one or more of the AFDataReferenceContext enumeration values logically ORed together.
Remarks
The context normally applies to the GetValue, SetValue, and GetValues methods. However,
the TimeRange context applies only to GetValue and indicates the data reference
can return a single value for the entire range, such as a totalization.