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

VoiceServicesTestLineResource.AddTag 方法

定义

将标记添加到当前资源。

  • Request Path/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.VoiceServices/communicationsGateways/{communicationsGatewayName}/testLines/{testLineName}
  • 操作IdTestLines_Get
public virtual Azure.Response<Azure.ResourceManager.VoiceServices.VoiceServicesTestLineResource> AddTag (string key, string value, System.Threading.CancellationToken cancellationToken = default);
abstract member AddTag : string * string * System.Threading.CancellationToken -> Azure.Response<Azure.ResourceManager.VoiceServices.VoiceServicesTestLineResource>
override this.AddTag : string * string * System.Threading.CancellationToken -> Azure.Response<Azure.ResourceManager.VoiceServices.VoiceServicesTestLineResource>
Public Overridable Function AddTag (key As String, value As String, Optional cancellationToken As CancellationToken = Nothing) As Response(Of VoiceServicesTestLineResource)

参数

key
String

标记的键。

value
String

标记的值。

cancellationToken
CancellationToken

要使用的取消标记。

返回

例外

keyvalue 为 null。

适用于