Condividi tramite


ClientRuntimeContext.LoadQuery<T> Method (IQueryable<T>)

Retrieves an enumerable sequence of the child client objects from a collection that can be the query expression in LINQ syntax.

Namespace:  Microsoft.SharePoint.Client
Assemblies:   Microsoft.SharePoint.Client.Silverlight.Runtime (in Microsoft.SharePoint.Client.Silverlight.Runtime.dll);  Microsoft.SharePoint.Client.Runtime (in Microsoft.SharePoint.Client.Runtime.dll)

Syntax

'Declaration
Public Function LoadQuery(Of T As ClientObject) ( _
    clientObjects As IQueryable(Of T) _
) As IEnumerable(Of T)
'Usage
Dim instance As ClientRuntimeContext
Dim clientObjects As IQueryable(Of T)
Dim returnValue As IEnumerable(Of T)

returnValue = instance.LoadQuery(clientObjects)
public IEnumerable<T> LoadQuery<T>(
    IQueryable<T> clientObjects
)
where T : ClientObject

Type Parameters

  • T
    The type of the child client object.

Parameters

Return Value

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

Remarks

This method retrieves an enumerable sequence of child client objects from a collection; specifically, the collection can be the query expression in LINQ syntax. The retrieved client objects are stored in the return value.

See Also

Reference

ClientRuntimeContext Class

ClientRuntimeContext Members

LoadQuery Overload

Microsoft.SharePoint.Client Namespace