次の方法で共有


DevTestLabSecretResource.SetTags メソッド

定義

リソースのタグを指定されたセットに置き換えます。

  • 要求パス/サブスクリプション/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/users/{userName}/secrets/{name}
  • 操作IdSecrets_Get
public virtual Azure.Response<Azure.ResourceManager.DevTestLabs.DevTestLabSecretResource> SetTags (System.Collections.Generic.IDictionary<string,string> tags, System.Threading.CancellationToken cancellationToken = default);
abstract member SetTags : System.Collections.Generic.IDictionary<string, string> * System.Threading.CancellationToken -> Azure.Response<Azure.ResourceManager.DevTestLabs.DevTestLabSecretResource>
override this.SetTags : System.Collections.Generic.IDictionary<string, string> * System.Threading.CancellationToken -> Azure.Response<Azure.ResourceManager.DevTestLabs.DevTestLabSecretResource>
Public Overridable Function SetTags (tags As IDictionary(Of String, String), Optional cancellationToken As CancellationToken = Nothing) As Response(Of DevTestLabSecretResource)

パラメーター

tags
IDictionary<String,String>

置換として使用するタグのセット。

cancellationToken
CancellationToken

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

戻り値

例外

tags が null です。

適用対象