IDocumentClient.ReadDocumentCollectionAsync
Method
Definition
Overloads
| ReadDocumentCollectionAsync(String, RequestOptions) |
Reads a DocumentCollection as an asynchronous operation in the Azure DocumentDB database service. |
| ReadDocumentCollectionAsync(Uri, RequestOptions) |
Reads a DocumentCollection as an asynchronous operation in the Azure DocumentDB database service. |
ReadDocumentCollectionAsync(String, RequestOptions)
Reads a DocumentCollection as an asynchronous operation in the Azure DocumentDB database service.
public System.Threading.Tasks.Task<Microsoft.Azure.Documents.Client.ResourceResponse<Microsoft.Azure.Documents.DocumentCollection>> ReadDocumentCollectionAsync (string documentCollectionLink, Microsoft.Azure.Documents.Client.RequestOptions options = null);
- documentCollectionLink
- String
The link for the DocumentCollection to be read.
- options
- RequestOptions
(Optional) The RequestOptionsfor this request.
A System.Threading.Tasks containing a ResourceResponse<TResource> which wraps a DocumentCollection containing the read resource record.
ReadDocumentCollectionAsync(Uri, RequestOptions)
Reads a DocumentCollection as an asynchronous operation in the Azure DocumentDB database service.
public System.Threading.Tasks.Task<Microsoft.Azure.Documents.Client.ResourceResponse<Microsoft.Azure.Documents.DocumentCollection>> ReadDocumentCollectionAsync (Uri documentCollectionUri, Microsoft.Azure.Documents.Client.RequestOptions options = null);
- documentCollectionUri
- Uri
A URI to the DocumentCollection resource to be read.
- options
- RequestOptions
(Optional) The RequestOptions for the request.
A System.Threading.Tasks containing a ResourceResponse<TResource> which wraps a DocumentCollection containing the read resource record.