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)


<ExtensionAttribute> _
Public Shared Function AsDocumentServiceQuery(Of T) ( _
    query As IQueryable(Of T) _
) As IDocumentServiceQuery(Of T)
Dim query As IQueryable(Of T)
Dim returnValue As IDocumentServiceQuery(Of T)

returnValue = query.AsDocumentServiceQuery()
public static IDocumentServiceQuery<T> AsDocumentServiceQuery<T>(
    this IQueryable<T> query
generic<typename T>
static IDocumentServiceQuery<T>^ AsDocumentServiceQuery(
    IQueryable<T>^ query
static member AsDocumentServiceQuery : 
        query:IQueryable<'T> -> IDocumentServiceQuery<'T> 
JScript does not support generic types and methods.

Type Parameters

  • T
    The type of object to query.


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 or

See Also


DocumentServiceQueryable Class

Microsoft.Azure.Documents.Linq Namespace