DocumentServiceQueryable.AsDocumentServiceQuery<T> Method

Converts an IQueryable to to IDocumentServiceQuery which supports pagination and asynchronous execution.

Namespace:  Microsoft.Azure.Documents.Linq
Assembly:  Microsoft.Azure.Documents.Client (in Microsoft.Azure.Documents.Client.dll)

public static IDocumentServiceQuery<T> AsDocumentServiceQuery<T>(
	this IQueryable<T> query
)

Type Parameters

T

The type of object to query.

Parameters

query
Type: System.Linq.IQueryable<T>
The query to convert.

Return Value

Type: Microsoft.Azure.Documents.Linq.IDocumentServiceQuery<T>
The query result set.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type IQueryable<T>. 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.
Show: