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)

Syntax

'Declaration
<ExtensionAttribute> _
Public Shared Function AsDocumentServiceQuery(Of T) ( _
    query As IQueryable(Of T) _
) As IDocumentServiceQuery(Of T)
'Usage
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
)
[ExtensionAttribute]
public:
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.

Parameters

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(v=azure.100) or https://msdn.microsoft.com/en-us/library/bb383977(v=azure.100).

See Also

Reference

DocumentServiceQueryable Class

Microsoft.Azure.Documents.Linq Namespace