Freigeben über


DocumentClient.ReplaceDocumentCollectionAsync Methode

Definition

Überlädt

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.

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

Die Anforderungsoptionen für die Anforderung.

Gibt zurück

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

Implementiert

Gilt für:

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

Implementiert

Gilt für: