共用方式為


TagResource.Update(WaitUntil, TagResourcePatch, CancellationToken) Method

Definition

This operation allows replacing, merging or selectively deleting tags on the specified resource or subscription. The specified entity can have a maximum of 50 tags at the end of the operation. The 'replace' option replaces the entire set of existing tags with a new set. The 'merge' option allows adding tags with new names and updating the values of tags with existing names. The 'delete' option allows selectively deleting tags based on given names or name/value pairs.

  • Request Path: /{scope}/providers/Microsoft.Resources/tags/default
  • Operation Id: Tags_UpdateAtScope
  • Default Api Version: 2022-09-01
  • Resource: TagResource
public virtual Azure.ResourceManager.ArmOperation<Azure.ResourceManager.Resources.TagResource> Update (Azure.WaitUntil waitUntil, Azure.ResourceManager.Resources.Models.TagResourcePatch patch, System.Threading.CancellationToken cancellationToken = default);
abstract member Update : Azure.WaitUntil * Azure.ResourceManager.Resources.Models.TagResourcePatch * System.Threading.CancellationToken -> Azure.ResourceManager.ArmOperation<Azure.ResourceManager.Resources.TagResource>
override this.Update : Azure.WaitUntil * Azure.ResourceManager.Resources.Models.TagResourcePatch * System.Threading.CancellationToken -> Azure.ResourceManager.ArmOperation<Azure.ResourceManager.Resources.TagResource>
Public Overridable Function Update (waitUntil As WaitUntil, patch As TagResourcePatch, Optional cancellationToken As CancellationToken = Nothing) As ArmOperation(Of TagResource)

Parameters

waitUntil
WaitUntil

Completed if the method should wait to return until the long-running operation has completed on the service; Started if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

patch is null.

Applies to