AFElement.LoadElements Method (IList(AFElement))
- Last UpdatedNov 18, 2025
- 2 minute read
- PI System
- AF SDK 2024 R2
- Developer
Loads the specified list AFElement objects.
Namespace: OSIsoft.AF.Asset
Assembly: OSIsoft.AFSDK (in OSIsoft.AFSDK.dll) Version: 3.1.1.1182
Syntax
public static void LoadElements( IList<AFElement> elements )
Public Shared Sub LoadElements ( elements As IList(Of AFElement) ) Dim elements As IList(Of AFElement) AFElement.LoadElements(elements)
public: static void LoadElements( IList<AFElement^>^ elements )
static member LoadElements : elements : IList<AFElement> -> unit
Parameters
Remarks
Fully loads the specified list AFElement objects from the server into
the client. This will ensure that the elements in the list are fully loaded to avoid
a call to the server to load each of the elements individually. To only load a specific
set of AFAttributes of the elements, use the
LoadAttributes
method. To make sure the elements referenced by elements are loaded, use the
LoadElementReferences(IListAFElement) method.
Examples
See the example Loading Top Level Objects
which illustrates using this method to bulk a list of elements into the client.