DocumentServiceQueryable.CreateDatabaseQuery Method

Creates and returns a query for databases.

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


<ExtensionAttribute> _
Public Shared Function CreateDatabaseQuery ( _
    client As DocumentClient, _
    feedOptions As FeedOptions _
) As IOrderedQueryable(Of Database)
Dim client As DocumentClient 
Dim feedOptions As FeedOptions 
Dim returnValue As IOrderedQueryable(Of Database)

returnValue = client.CreateDatabaseQuery(feedOptions)
public static IOrderedQueryable<Database> CreateDatabaseQuery(
    this DocumentClient client,
    FeedOptions feedOptions
static IOrderedQueryable<Database^>^ CreateDatabaseQuery(
    DocumentClient^ client, 
    FeedOptions^ feedOptions
static member CreateDatabaseQuery : 
        client:DocumentClient * 
        feedOptions:FeedOptions -> IOrderedQueryable<Database> 
public static function CreateDatabaseQuery(
    client : DocumentClient, 
    feedOptions : FeedOptions
) : IOrderedQueryable<Database>


Return Value

Type: System.Linq.IOrderedQueryable<Database>
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 or

See Also


DocumentServiceQueryable Class

Microsoft.Azure.Documents.Linq Namespace