Freigeben über


MongoDBCollectionResource.Update Methode

Definition

Erstellen oder Aktualisieren einer MongoDB-Sammlung in Azure Cosmos DB

  • Anforderungspfad/abonnements/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/mongodbDatabases/{databaseName}/collections/{collectionName}
  • Vorgangs-IdMongoDBResources_CreateUpdateMongoDBCollection
public virtual Azure.ResourceManager.ArmOperation<Azure.ResourceManager.CosmosDB.MongoDBCollectionResource> Update (Azure.WaitUntil waitUntil, Azure.ResourceManager.CosmosDB.Models.MongoDBCollectionCreateOrUpdateContent content, System.Threading.CancellationToken cancellationToken = default);
abstract member Update : Azure.WaitUntil * Azure.ResourceManager.CosmosDB.Models.MongoDBCollectionCreateOrUpdateContent * System.Threading.CancellationToken -> Azure.ResourceManager.ArmOperation<Azure.ResourceManager.CosmosDB.MongoDBCollectionResource>
override this.Update : Azure.WaitUntil * Azure.ResourceManager.CosmosDB.Models.MongoDBCollectionCreateOrUpdateContent * System.Threading.CancellationToken -> Azure.ResourceManager.ArmOperation<Azure.ResourceManager.CosmosDB.MongoDBCollectionResource>
Public Overridable Function Update (waitUntil As WaitUntil, content As MongoDBCollectionCreateOrUpdateContent, Optional cancellationToken As CancellationToken = Nothing) As ArmOperation(Of MongoDBCollectionResource)

Parameter

waitUntil
WaitUntil

Completed , wenn die Methode auf die Rückgabe warten soll, bis der zeitintensive Vorgang für den Dienst abgeschlossen ist; Started , wenn sie nach dem Starten des Vorgangs zurückgegeben werden soll. Weitere Informationen zu Vorgängen mit langer Ausführungszeit finden Sie unter Beispiele für Azure.Core-Long-Running-Vorgänge.

content
MongoDBCollectionCreateOrUpdateContent

Die Parameter, die für die aktuelle MongoDB-Auflistung bereitgestellt werden sollen.

cancellationToken
CancellationToken

Das zu verwendende Abbruchtoken.

Gibt zurück

Ausnahmen

content ist NULL.

Gilt für: