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