IDocumentClient.ReplaceDocumentCollectionAsync Method

Definition

Overloads

ReplaceDocumentCollectionAsync(DocumentCollection, RequestOptions)

Replaces a document collection as an asynchronous operation in the Azure Cosmos DB service.

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 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 (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>>

Parameters

documentCollection
DocumentCollection

The updated document collection.

options
RequestOptions

(Optional) The RequestOptionsfor this request.

Returns

Task<ResourceResponse<DocumentCollection>>

The task object representing the service response for the asynchronous operation.

Applies to

Product Introduced

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>>

Parameters

documentCollectionUri
Uri

The URI of the document collection to be updated.

documentCollection
DocumentCollection

The updated document collection.

options
RequestOptions

(Optional) The RequestOptions for the request.

Returns

Task<ResourceResponse<DocumentCollection>>

The task object representing the service response for the asynchronous operation.

Applies to

Product Introduced