Freigeben über


IDocumentClient.ReplaceDocumentCollectionAsync Methode

Definition

Überlädt

ReplaceDocumentCollectionAsync(DocumentCollection, RequestOptions)

Ersetzt eine Dokumentsammlung im Azure Cosmos DB-Dienst als asynchroner Vorgang.

ReplaceDocumentCollectionAsync(Uri, DocumentCollection, RequestOptions)

Ersetzt eine Dokumentsammlung als asynchroner Vorgang im Azure Cosmos DB-Dienst.

ReplaceDocumentCollectionAsync(DocumentCollection, RequestOptions)

Ersetzt eine Dokumentsammlung im Azure Cosmos DB-Dienst als asynchroner Vorgang.

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 = default);
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>>
Public Function ReplaceDocumentCollectionAsync (documentCollection As DocumentCollection, Optional options As RequestOptions = Nothing) As Task(Of ResourceResponse(Of DocumentCollection))

Parameter

documentCollection
DocumentCollection

die aktualisierte Dokumentsammlung.

options
RequestOptions

die Anforderungsoptionen für die Anforderung.

Gibt zurück

Eine System.Threading.Tasks , die ein ResourceResponse<TResource> enthält, das einen DocumentCollection umschließt, der den aktualisierten Ressourcendatensatz enthält.

Gilt für:

ReplaceDocumentCollectionAsync(Uri, DocumentCollection, RequestOptions)

Ersetzt eine Dokumentsammlung als asynchroner Vorgang im Azure Cosmos DB-Dienst.

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 = default);
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>>
Public Function ReplaceDocumentCollectionAsync (documentCollectionUri As Uri, documentCollection As DocumentCollection, Optional options As RequestOptions = Nothing) As Task(Of ResourceResponse(Of DocumentCollection))

Parameter

documentCollectionUri
Uri

Der URI der zu aktualisierenden Dokumentsammlung.

documentCollection
DocumentCollection

Die aktualisierte Dokumentsammlung.

options
RequestOptions

(Optional) Der RequestOptions für die Anforderung.

Gibt zurück

Das Taskobjekt, das die Dienstantwort für den asynchronen Vorgang darstellt.

Gilt für: