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

AF SDK Reference

AFValueStatus Enumeration

  • Last UpdatedNov 18, 2025
  • 3 minute read
AFValueStatus Enumeration
This is an enumeration that defines the possible AFValue indicators when you retrieve the value of an AFAttribute.

Namespace:  OSIsoft.AF.Asset
Assembly:  OSIsoft.AFSDK (in OSIsoft.AFSDK.dll) Version: 3.1.1.1182

Syntax

[FlagsAttribute]
public enum AFValueStatus
<FlagsAttribute>
Public Enumeration AFValueStatus

Dim instance As AFValueStatus
[FlagsAttribute]
public enum class AFValueStatus
[<FlagsAttribute>]
type AFValueStatus

Members

  Member nameValueDescription
Bad0 Indicates the value is bad.
Questionable64 The value has been identified as irregular in some way by an application.
Good192 Indicates the value is good.
QualityMask192 Mask for Bad, Questionable (Uncertain), and Good quality status.
SubstatusMask60 Mask for quality substatus bits. The only substatus bit defined is Substituted.
BadSubstituteValue60 A Bad quality substatus value which indicates the value has been substituted with a bad value.
UncertainSubstituteValue8 A Questionable quality substatus value which indicates the value has been substituted.
Substituted24 A Good quality substatus value which indicates the value has been replaced after it was originally written. If the value is obtained from an AFCase and is adjusted, this flag will be set.
Constant3 Indicates the value contains an constant value which is not expected to change at runtime.
Annotated32768 Indicates the value contains an annotation. For values retrieved from the PI Archive, use the underlying PIPoint to obtain the value of the annotation.

Remarks

When obtaining the value of an attribute, the AFValue.Status property will indicate the status of the value. You can also use the AFValue.IsGood, AFValue.Substituted, AFValue.Questionable, and AFValue.Annotated properties directly. If you are inter-operating with another system, it may be more efficient to access the values and status using the AFValues.GetValueArrays method which returns the status information as flags.

The quality bit field, obtained with the QualityMask, may be one of three values: Bad, Questionable, or Good. The sub-status bits, SubstatusMask, contain additional information of the quality, based on the overall quality.

Version Information

AFSDK


See Also

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