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
- client
Type: Microsoft.Azure.Documents.Client.DocumentClient
The DocumentClient to use.
- collectionLink
Type: System.String
The self-link to the collection.
- feedOptions
Type: Microsoft.Azure.Documents.Client.FeedOptions
The options for processing the query results feed.
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).