DocumentClient.ReplaceDocumentCollectionAsync Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
ReplaceDocumentCollectionAsync(DocumentCollection, RequestOptions) |
Replaces a document collection in the Azure Cosmos DB service as an asynchronous operation. |
ReplaceDocumentCollectionAsync(Uri, DocumentCollection, RequestOptions) |
Replaces a document collection as an asynchronous operation in the Azure Cosmos DB service. |
ReplaceDocumentCollectionAsync(DocumentCollection, RequestOptions)
Replaces a document collection in the Azure Cosmos DB 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);
abstract member ReplaceDocumentCollectionAsync : Microsoft.Azure.Documents.DocumentCollection * Microsoft.Azure.Documents.Client.RequestOptions -> System.Threading.Tasks.Task<Microsoft.Azure.Documents.Client.ResourceResponse<Microsoft.Azure.Documents.DocumentCollection>>
override this.ReplaceDocumentCollectionAsync : Microsoft.Azure.Documents.DocumentCollection * Microsoft.Azure.Documents.Client.RequestOptions -> System.Threading.Tasks.Task<Microsoft.Azure.Documents.Client.ResourceResponse<Microsoft.Azure.Documents.DocumentCollection>>
Parameters
- documentCollection
- DocumentCollection
the updated document collection.
- options
- RequestOptions
the request options for the request.
Returns
- System.Threading.Tasks.Task<ResourceResponse<DocumentCollection>>
The task object representing the service response for the asynchronous operation.
Implements
Applies to
ReplaceDocumentCollectionAsync(Uri, DocumentCollection, RequestOptions)
Replaces a document collection as an asynchronous operation in the Azure Cosmos DB 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);
abstract member ReplaceDocumentCollectionAsync : Uri * Microsoft.Azure.Documents.DocumentCollection * Microsoft.Azure.Documents.Client.RequestOptions -> System.Threading.Tasks.Task<Microsoft.Azure.Documents.Client.ResourceResponse<Microsoft.Azure.Documents.DocumentCollection>>
override this.ReplaceDocumentCollectionAsync : Uri * Microsoft.Azure.Documents.DocumentCollection * Microsoft.Azure.Documents.Client.RequestOptions -> System.Threading.Tasks.Task<Microsoft.Azure.Documents.Client.ResourceResponse<Microsoft.Azure.Documents.DocumentCollection>>
Parameters
- documentCollectionUri
- System.Uri
the URI of the document collection to be updated.
- documentCollection
- DocumentCollection
the updated document collection.
- options
- RequestOptions
The request options for the request.
Returns
- System.Threading.Tasks.Task<ResourceResponse<DocumentCollection>>
The task object representing the service response for the asynchronous operation.