Freigeben über


CommitmentPlansOperationsExtensions.CreateOrUpdateAsync Methode

Definition

Aktualisieren Sie den Status der angegebenen commitmentPlans, die dem Cognitive Services-Konto zugeordnet sind.

public static System.Threading.Tasks.Task<Microsoft.Azure.Management.CognitiveServices.Models.CommitmentPlan> CreateOrUpdateAsync (this Microsoft.Azure.Management.CognitiveServices.ICommitmentPlansOperations operations, string resourceGroupName, string accountName, string commitmentPlanName, Microsoft.Azure.Management.CognitiveServices.Models.CommitmentPlan commitmentPlan, System.Threading.CancellationToken cancellationToken = default);
static member CreateOrUpdateAsync : Microsoft.Azure.Management.CognitiveServices.ICommitmentPlansOperations * string * string * string * Microsoft.Azure.Management.CognitiveServices.Models.CommitmentPlan * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Azure.Management.CognitiveServices.Models.CommitmentPlan>
<Extension()>
Public Function CreateOrUpdateAsync (operations As ICommitmentPlansOperations, resourceGroupName As String, accountName As String, commitmentPlanName As String, commitmentPlan As CommitmentPlan, Optional cancellationToken As CancellationToken = Nothing) As Task(Of CommitmentPlan)

Parameter

operations
ICommitmentPlansOperations

Die Vorgangsgruppe für diese Erweiterungsmethode.

resourceGroupName
String

Der Name der Ressourcengruppe. Für den Namen wird die Groß-/Kleinschreibung nicht beachtet.

accountName
String

Der Name des Cognitive Services-Kontos.

commitmentPlanName
String

Der Name des commitmentPlan, der dem Cognitive Services-Konto zugeordnet ist

commitmentPlan
CommitmentPlan

Die commitmentPlan-Eigenschaften.

cancellationToken
CancellationToken

Das Abbruchtoken.

Gibt zurück

Gilt für: