Freigeben über


CommitmentPlanResource.AddTagAsync(String, String, CancellationToken) Methode

Definition

Fügen Sie der aktuellen Ressource ein Tag hinzu.

  • Anfordern von Path/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CognitiveServices/accounts/{accountName}/commitmentPlans/{commitmentPlanName}
  • Vorgang IdCommitmentPlans_Get
public virtual System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.CognitiveServices.CommitmentPlanResource>> AddTagAsync (string key, string value, System.Threading.CancellationToken cancellationToken = default);
abstract member AddTagAsync : string * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.CognitiveServices.CommitmentPlanResource>>
override this.AddTagAsync : string * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.CognitiveServices.CommitmentPlanResource>>
Public Overridable Function AddTagAsync (key As String, value As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of CommitmentPlanResource))

Parameter

key
String

Der Schlüssel für das Tag.

value
String

Der Wert für das Tag.

cancellationToken
CancellationToken

Das zu verwendende Abbruchtoken.

Gibt zurück

Ausnahmen

key oder value ist NULL.

Gilt für: