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

AF SDK Reference

AFDatabase.ElementCategories Property

  • Last UpdatedNov 18, 2025
  • 2 minute read
AFDatabase.ElementCategories Property
Gets the collection of element categories maintained by the AFDatabase.

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

Syntax

public AFCategories ElementCategories { get; }
Public ReadOnly Property ElementCategories As AFCategories
	Get

Dim instance As AFDatabase
Dim value As AFCategories

value = instance.ElementCategories
public:
property AFCategories^ ElementCategories {
	AFCategories^ get ();
}
member ElementCategories : AFCategories with get

Property Value

Type: AFCategories
The collection of element categories maintained by the AFDatabase.

Remarks

This collection contains all the available categories on the AFDatabase that can be values for the AFBaseElement.Categories or AFElementTemplate.Categories collection. You can add a new category to this list by calling the Add method for this collection.

Version Information

AFSDK


See Also

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