AFDatabase.Elements Property
- Last UpdatedNov 18, 2025
- 2 minute read
- PI System
- AF SDK 2024 R2
- Developer
Gets the collection of top-level elements maintained by the
AFDatabase.
Namespace: OSIsoft.AF
Assembly: OSIsoft.AFSDK (in OSIsoft.AFSDK.dll) Version: 3.1.1.1182
Syntax
public AFElements Elements { get; }
Public ReadOnly Property Elements As AFElements Get Dim instance As AFDatabase Dim value As AFElements value = instance.Elements
public: property AFElements^ Elements { AFElements^ get (); }
member Elements : AFElements with get
Property Value
Type: AFElementsThe collection of top-level elements maintained by the AFDatabase.
Remarks
This collection contains all the top-level elements that were constructed
in the AFDatabase. All elements in the database
are reachable via the hierarchy which originates in this collection. Create a new
element by calling one of the AFElementsAdd
methods.