Partager via


DevTestLabServiceFabricScheduleResource.AddTag Méthode

Définition

Ajoutez une étiquette à la ressource actuelle.

  • Chemin de la demande/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/users/{userName}/servicefabrics/{serviceFabricName}/schedules/{name}
  • IdServiceFabricSchedules_Get d’opération
public virtual Azure.Response<Azure.ResourceManager.DevTestLabs.DevTestLabServiceFabricScheduleResource> AddTag (string key, string value, System.Threading.CancellationToken cancellationToken = default);
abstract member AddTag : string * string * System.Threading.CancellationToken -> Azure.Response<Azure.ResourceManager.DevTestLabs.DevTestLabServiceFabricScheduleResource>
override this.AddTag : string * string * System.Threading.CancellationToken -> Azure.Response<Azure.ResourceManager.DevTestLabs.DevTestLabServiceFabricScheduleResource>
Public Overridable Function AddTag (key As String, value As String, Optional cancellationToken As CancellationToken = Nothing) As Response(Of DevTestLabServiceFabricScheduleResource)

Paramètres

key
String

Clé de la balise.

value
String

Valeur de la balise.

cancellationToken
CancellationToken

Jeton d’annulation à utiliser.

Retours

Exceptions

key ou value est null.

S’applique à