ClientObjectQueryableExtension.IncludeWithDefaultProperties<TSource> Method
SharePoint 2010
Specifies which properties, in addition to the default properties, 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)
public static IQueryable<TSource> IncludeWithDefaultProperties<TSource>( this IQueryable<TSource> clientObjects, params Expression<Func<TSource, Object>>[] retrievals ) where TSource : ClientObject
Type Parameters
- TSource
The type of the elements of clientObjects.
Parameters
- clientObjects
- Type: System.Linq.IQueryable<TSource>
A client object that implements IQueryable<T>, which contains the queried properties.
- retrievals
- Type: []
The list of the properties to retrieve from the server.
Return Value
Type: System.Linq.IQueryable<TSource>A client object used to retrieve the default properties and 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 https://msdn.microsoft.com/en-us/library/bb384936.aspx or https://msdn.microsoft.com/en-us/library/bb383977.aspx.This method extends the properties retrieved for the client object that implements IQueryable<T>, so that it can specify which properties, in addition to the default properties, to retrieve from the server.
Show: