次の方法で共有


ManagedEnvironmentResource.AddTagAsync メソッド

定義

現在のリソースにタグを追加します。 要求パス: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/managedEnvironments/{environmentName} 操作 ID: ManagedEnvironments_Get

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

パラメーター

key
String

タグのキー。

value
String

タグの値。

cancellationToken
CancellationToken

使用する取り消しトークン。

戻り値

例外

key または value が null です。

適用対象