AFDatabase.ElementCategories Property
- Last UpdatedNov 18, 2025
- 2 minute read
- PI System
- AF SDK 2024 R2
- Developer
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: AFCategoriesThe 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.