你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

ClusterResource.AddTagAsync(String, String, CancellationToken) 方法

定义

将标记添加到当前资源。 请求路径:/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/redisEnterprise/{clusterName} 操作 ID:RedisEnterprise_Get

public virtual System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.RedisEnterpriseCache.ClusterResource>> 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.RedisEnterpriseCache.ClusterResource>>
override this.AddTagAsync : string * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.RedisEnterpriseCache.ClusterResource>>
Public Overridable Function AddTagAsync (key As String, value As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of ClusterResource))

参数

key
String

标记的键。

value
String

标记的值。

cancellationToken
CancellationToken

要使用的取消标记。

返回

例外

keyvalue 为 null。

适用于