DocumentClient.ReplaceDocumentCollectionAsync
Method
Definition
Overloads
| ReplaceDocumentCollectionAsync(DocumentCollection, RequestOptions) |
Replaces a document collection in the Azure DocumentDB database service as an asynchronous operation. |
| ReplaceDocumentCollectionAsync(Uri, DocumentCollection, RequestOptions) |
Replaces a document collection as an asynchronous operation in the Azure DocumentDB database service. |
ReplaceDocumentCollectionAsync(DocumentCollection, RequestOptions)
Replaces a document collection in the Azure DocumentDB database service as an asynchronous operation.
public System.Threading.Tasks.Task<Microsoft.Azure.Documents.Client.ResourceResponse<Microsoft.Azure.Documents.DocumentCollection>> ReplaceDocumentCollectionAsync (Microsoft.Azure.Documents.DocumentCollection documentCollection, Microsoft.Azure.Documents.Client.RequestOptions options = null);
- documentCollection
- DocumentCollection
the updated document collection.
- options
- RequestOptions
the request options for the request.
The task object representing the service response for the asynchronous operation.
ReplaceDocumentCollectionAsync(Uri, DocumentCollection, RequestOptions)
Replaces a document 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>> ReplaceDocumentCollectionAsync (Uri documentCollectionUri, Microsoft.Azure.Documents.DocumentCollection documentCollection, Microsoft.Azure.Documents.Client.RequestOptions options = null);
- documentCollectionUri
- Uri
the URI of the document collection to be updated.
- documentCollection
- DocumentCollection
the updated document collection.
- options
- RequestOptions
The request options for the request.
The task object representing the service response for the asynchronous operation.