Freigeben über


ExpressRoutePortResource.SetTags Methode

Definition

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

  • Anfordern von Path/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/ExpressRoutePorts/{expressRoutePortName}
  • Vorgang IdExpressRoutePorts_Get
public virtual Azure.Response<Azure.ResourceManager.Network.ExpressRoutePortResource> SetTags (System.Collections.Generic.IDictionary<string,string> tags, System.Threading.CancellationToken cancellationToken = default);
abstract member SetTags : System.Collections.Generic.IDictionary<string, string> * System.Threading.CancellationToken -> Azure.Response<Azure.ResourceManager.Network.ExpressRoutePortResource>
override this.SetTags : System.Collections.Generic.IDictionary<string, string> * System.Threading.CancellationToken -> Azure.Response<Azure.ResourceManager.Network.ExpressRoutePortResource>
Public Overridable Function SetTags (tags As IDictionary(Of String, String), Optional cancellationToken As CancellationToken = Nothing) As Response(Of ExpressRoutePortResource)

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: