Freigeben über


DdosCustomPolicyResource.SetTagsAsync Methode

Definition

Ersetzen Sie die Tags für die Ressource durch den angegebenen Satz.

  • Anforderungspfad/abonnements/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/ddosCustomPolicies/{ddosCustomPolicyName}
  • Vorgangs-IdDdosCustomPolicies_Get
public virtual System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Network.DdosCustomPolicyResource>> SetTagsAsync (System.Collections.Generic.IDictionary<string,string> tags, System.Threading.CancellationToken cancellationToken = default);
abstract member SetTagsAsync : System.Collections.Generic.IDictionary<string, string> * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Network.DdosCustomPolicyResource>>
override this.SetTagsAsync : System.Collections.Generic.IDictionary<string, string> * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Network.DdosCustomPolicyResource>>
Public Overridable Function SetTagsAsync (tags As IDictionary(Of String, String), Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of DdosCustomPolicyResource))

Parameter

tags
IDictionary<String,String>

Der Satz von Tags, die als Ersatz verwendet werden sollen.

cancellationToken
CancellationToken

Das zu verwendende Abbruchtoken.

Gibt zurück

Ausnahmen

tags ist NULL.

Gilt für: