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

AF SDK Reference

AFDatabase.Elements Property

  • Last UpdatedNov 18, 2025
  • 2 minute read
AFDatabase.Elements Property
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: AFElements
The 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.

Version Information

AFSDK


See Also

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