Partilhar via


ServiceUnitResource.SetTagsAsync Método

Definição

Substitua as marcas no recurso pelo conjunto fornecido.

  • Caminho da Solicitação/assinaturas/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DeploymentManager/serviceTopologies/{serviceTopologyName}/services/{serviceName}/serviceUnits/{serviceUnitName}
  • Operação IdServiceUnits_Get
public virtual System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.DeploymentManager.ServiceUnitResource>> 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.DeploymentManager.ServiceUnitResource>>
override this.SetTagsAsync : System.Collections.Generic.IDictionary<string, string> * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.DeploymentManager.ServiceUnitResource>>
Public Overridable Function SetTagsAsync (tags As IDictionary(Of String, String), Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of ServiceUnitResource))

Parâmetros

tags
IDictionary<String,String>

O conjunto de marcas a serem usadas como substituição.

cancellationToken
CancellationToken

O token de cancelamento a ser usado.

Retornos

Exceções

tags é nulo.

Aplica-se a