AFAttributeTrait.RequireEnumerationValue Property
- Last UpdatedJan 12, 2026
- 2 minute read
- PI System
- AF SDK 3.2.0
- Developer
Indicates if the AFAttribute with this trait defined must have a Type
that is an AFEnumerationValue.
Namespace: OSIsoft.AF.Asset
Assembly: OSIsoft.AFSDK (in OSIsoft.AFSDK.dll) Version: 3.2.0.7
Syntax
public bool RequireEnumerationValue { get; }
Public ReadOnly Property RequireEnumerationValue As Boolean Get Dim instance As AFAttributeTrait Dim value As Boolean value = instance.RequireEnumerationValue
public: property bool RequireEnumerationValue { bool get (); }
member RequireEnumerationValue : bool with get
Property Value
Type: BooleanReturns if the Type must be an AFEnumerationValue.
Remarks
The AFAttribute with this trait must have a Type that is an AFEnumerationValue.
If the GetRequiredEnumerationSet(AFDatabase) is defined, then the attributes's TypeQualifier will be set.
Otherwise, the attribute's TypeQualifier should be set to the AFEnumerationSet that contains
the valid enumeration values. By default, the attribute's TypeQualifier will not be modified and the attribute's
value will be .