DocumentServiceQueryable.CreateDocumentQuery Method (DocumentClient, String, FeedOptions)

Creates and returns a query for documents.

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

Syntax

'Declaration
<ExtensionAttribute> _
Public Shared Function CreateDocumentQuery ( _
    client As DocumentClient, _
    collectionLink As String, _
    feedOptions As FeedOptions _
) As IOrderedQueryable(Of Document)
'Usage
Dim client As DocumentClient 
Dim collectionLink As String 
Dim feedOptions As FeedOptions 
Dim returnValue As IOrderedQueryable(Of Document)

returnValue = client.CreateDocumentQuery(collectionLink, _
    feedOptions)
public static IOrderedQueryable<Document> CreateDocumentQuery(
    this DocumentClient client,
    string collectionLink,
    FeedOptions feedOptions
)
[ExtensionAttribute]
public:
static IOrderedQueryable<Document^>^ CreateDocumentQuery(
    DocumentClient^ client, 
    String^ collectionLink, 
    FeedOptions^ feedOptions
)
static member CreateDocumentQuery : 
        client:DocumentClient * 
        collectionLink:string * 
        feedOptions:FeedOptions -> IOrderedQueryable<Document> 
public static function CreateDocumentQuery(
    client : DocumentClient, 
    collectionLink : String, 
    feedOptions : FeedOptions
) : IOrderedQueryable<Document>

Parameters

  • collectionLink
    Type: System.String
    The self-link to the collection.

Return Value

Type: System.Linq.IOrderedQueryable<Document>
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 DocumentClient. 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

CreateDocumentQuery Overload

Microsoft.Azure.Documents.Linq Namespace