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

AF SDK Reference

AFAttributeTemplate.IsIndexed Property

  • Last UpdatedNov 18, 2025
  • 2 minute read
AFAttributeTemplate.IsIndexed Property
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: Boolean
Determines 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.

Important note Important
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.

Version Information

AFSDK


See Also

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