AFElement.HasChildren Property
- Last UpdatedNov 18, 2025
- 2 minute read
- PI System
- AF SDK 2024 R2
- Developer
This read-only property returns if the element has child elements.
Namespace: OSIsoft.AF.Asset
Assembly: OSIsoft.AFSDK (in OSIsoft.AFSDK.dll) Version: 3.1.1.1182
Syntax
public bool HasChildren { get; }
Public ReadOnly Property HasChildren As Boolean Get Dim instance As AFElement Dim value As Boolean value = instance.HasChildren
public: property bool HasChildren { bool get (); }
member HasChildren : bool with get
Property Value
Type: BooleanReturns if the element has child elements.
Remarks
This method provides a more performant way of checking for child elements of this element
other than using the Elements collection.