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

AF SDK Reference

AFElement.LoadElements Method (IList(AFElement))

  • Last UpdatedNov 18, 2025
  • 2 minute read
AFElement.LoadElements Method (IList(AFElement))
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

elements
Type: System.Collections.GenericIListAFElement
The list of elements to be fully loaded. If , then this method does nothing. All elements in the list must be from the same PISystem and have the same QueryDate.

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.

Version Information

AFSDK


See Also

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