IDocumentClient.DeleteDocumentCollectionAsync
Method
Definition
Overloads
| DeleteDocumentCollectionAsync(String, RequestOptions) |
Delete a DocumentCollection as an asynchronous operation in the Azure DocumentDB database service. |
| DeleteDocumentCollectionAsync(Uri, RequestOptions) |
Delete a collection as an asynchronous operation in the Azure DocumentDB database service. |
DeleteDocumentCollectionAsync(String, RequestOptions)
Delete 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>> DeleteDocumentCollectionAsync (string documentCollectionLink, 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.
DeleteDocumentCollectionAsync(Uri, RequestOptions)
Delete a collection as an asynchronous operation in the Azure DocumentDB database service.
public System.Threading.Tasks.Task<Microsoft.Azure.Documents.Client.ResourceResponse<Microsoft.Azure.Documents.DocumentCollection>> DeleteDocumentCollectionAsync (Uri documentCollectionUri, Microsoft.Azure.Documents.Client.RequestOptions options = null);
Parameters
- documentCollectionUri
- Uri
The URI of the document collection to delete.
- options
- RequestOptions
(Optional) The RequestOptions for the request.
Returns
The task object representing the service response for the asynchronous operation.