ClientRuntimeContext.LoadQuery<T> method (ClientObjectCollection<T>)

Retrieves an enumerable sequence of the child client objects from a collection.

Namespace:  Microsoft.SharePoint.Client
Assembly:  Microsoft.SharePoint.Client.Runtime (in Microsoft.SharePoint.Client.Runtime.dll)

public IEnumerable<T> LoadQuery<T>(
	ClientObjectCollection<T> clientObjects
where T : ClientObject

Type parameters


The type of the child client object.


Type: Microsoft.SharePoint.Client.ClientObjectCollection<T>

The ClientObjectCollection<UMP> object that represents the collection of the client objects.

Return value

Type: System.Collections.Generic.IEnumerable<T>
The enumerable sequence of client objects.

This method retrieves the enumerable sequence of client objects that are the child objects of a collection; specifically, the user can apply the foreach programming pattern to iterate the sequence. The retrieved client objects are stored in the return value.