AFAttributeTemplate.IsIndexed Property
- Last UpdatedNov 18, 2025
- 2 minute read
- PI System
- AF SDK 2024 R2
- Developer
This property determines whether the value of the attribute created from this template
is indexed to improve performance of attribute value searches.
Namespace: OSIsoft.AF.Asset
Assembly: OSIsoft.AFSDK (in OSIsoft.AFSDK.dll) Version: 3.1.1.1182
Syntax
public bool IsIndexed { get; set; }
Public Property IsIndexed As Boolean Get Set Dim instance As AFAttributeTemplate Dim value As Boolean value = instance.IsIndexed instance.IsIndexed = value
public: property bool IsIndexed { bool get (); void set (bool value); }
member IsIndexed : bool with get, set
Property Value
Type: BooleanDetermines whether the value of the attribute created from this template is indexed to improve performance of attribute value searches. The default value is .
Remarks
If this property is , then the values of all the attributes created from this template will be indexed. Indexing an attribute value will improve performance when searching by attribute value, but will degrade performance when modifying the attribute value.
| An indexed attribute value must be a simple type and cannot have a DataReferencePlugIn defined. An indexed attribute value with a String type will only use the first 40 characters in the search operation. |