IDocumentClient.DeleteDatabaseAsync
Method
Definition
Overloads
| DeleteDatabaseAsync(Uri, RequestOptions) |
Delete a database as an asynchronous operation in the Azure DocumentDB database service. |
| DeleteDatabaseAsync(String, RequestOptions) |
Delete a Database as an asynchronous operation in the Azure DocumentDB database service. |
DeleteDatabaseAsync(Uri, RequestOptions)
Delete 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>> DeleteDatabaseAsync (Uri databaseUri, Microsoft.Azure.Documents.Client.RequestOptions options = null);
Parameters
- databaseUri
- Uri
The URI of the database to delete.
- options
- RequestOptions
(Optional) The RequestOptions for the request.
Returns
The task object representing the service response for the asynchronous operation.
DeleteDatabaseAsync(String, RequestOptions)
Delete 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>> DeleteDatabaseAsync (string databaseLink, Microsoft.Azure.Documents.Client.RequestOptions options = null);
Parameters
- options
- RequestOptions
(Optional) The RequestOptionsfor this request.
Returns
A System.Threading.Tasks containing a ResourceResponse<TResource> which will contain information about the request issued.