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