AFElement.LoadElements Method (IList(AFElement))
- Last UpdatedJan 12, 2026
- 2 minute read
- PI System
- AF SDK 3.2.0
- Developer
Loads the specified list AFElement objects.
Namespace: OSIsoft.AF.Asset
Assembly: OSIsoft.AFSDK (in OSIsoft.AFSDK.dll) Version: 3.2.0.7
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.