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

AppConfigurationKeyValueResource.AddTag 方法

定义

将标记添加到当前资源。

  • 请求路径/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppConfiguration/configurationStores/{configStoreName}/keyValues/{keyValueName}
  • 操作IdKeyValues_Get
public virtual Azure.Response<Azure.ResourceManager.AppConfiguration.AppConfigurationKeyValueResource> AddTag (string key, string value, System.Threading.CancellationToken cancellationToken = default);
abstract member AddTag : string * string * System.Threading.CancellationToken -> Azure.Response<Azure.ResourceManager.AppConfiguration.AppConfigurationKeyValueResource>
override this.AddTag : string * string * System.Threading.CancellationToken -> Azure.Response<Azure.ResourceManager.AppConfiguration.AppConfigurationKeyValueResource>
Public Overridable Function AddTag (key As String, value As String, Optional cancellationToken As CancellationToken = Nothing) As Response(Of AppConfigurationKeyValueResource)

参数

key
String

标记的键。

value
String

标记的值。

cancellationToken
CancellationToken

要使用的取消标记。

返回

例外

keyvalue 为 null。

适用于