Share via

ClientObjectQueryableExtension.Include<TSource> Method

Specifies the properties of a client object to retrieve from the server.

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)


<ExtensionAttribute> _
Public Shared Function Include(Of TSource As ClientObject) ( _
    clientObjects As IQueryable(Of TSource), _
    ParamArray retrievals As Expression(Of Func(Of TSource, Object))() _
) As IQueryable(Of TSource)
Dim clientObjects As IQueryable(Of TSource)
Dim retrievals As Expression(Of Func(Of TSource, Object))()
Dim returnValue As IQueryable(Of TSource)

returnValue = clientObjects.Include(retrievals)
public static IQueryable<TSource> Include<TSource>(
    this IQueryable<TSource> clientObjects,
    params Expression<Func<TSource, Object>>[] retrievals
where TSource : ClientObject

Type Parameters

  • TSource
    The type of the elements of clientObjects.


  • retrievals
    Type: []

    The list of the properties to retrieve from the server.

Return Value

Type: System.Linq.IQueryable<TSource>
A client object that is used to retrieve the specified properties for the query.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type IQueryable<TSource>. When you use instance method syntax to call this method, omit the first parameter. For more information, see or


This method extends the properties retrieved for the client object that implements IQueryable<T>, so that it can specify which properties of the client object elements to retrieve from the server.

See Also


ClientObjectQueryableExtension Class

ClientObjectQueryableExtension Members

Microsoft.SharePoint.Client Namespace