Freigeben über


TagsOperationsExtensions.CreateOrUpdateAtScopeAsync Methode

Definition

Erstellt oder aktualisiert den gesamten Satz von Tags für eine Ressource oder ein Abonnement.

public static System.Threading.Tasks.Task<Microsoft.Azure.Management.ResourceManager.Models.TagsResource> CreateOrUpdateAtScopeAsync (this Microsoft.Azure.Management.ResourceManager.ITagsOperations operations, string scope, Microsoft.Azure.Management.ResourceManager.Models.TagsResource parameters, System.Threading.CancellationToken cancellationToken = default);
static member CreateOrUpdateAtScopeAsync : Microsoft.Azure.Management.ResourceManager.ITagsOperations * string * Microsoft.Azure.Management.ResourceManager.Models.TagsResource * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Azure.Management.ResourceManager.Models.TagsResource>
<Extension()>
Public Function CreateOrUpdateAtScopeAsync (operations As ITagsOperations, scope As String, parameters As TagsResource, Optional cancellationToken As CancellationToken = Nothing) As Task(Of TagsResource)

Parameter

operations
ITagsOperations

Die Vorgangsgruppe für diese Erweiterungsmethode.

scope
String

Der Ressourcenbereich.

parameters
TagsResource
cancellationToken
CancellationToken

Das Abbruchtoken.

Gibt zurück

Hinweise

Dieser Vorgang ermöglicht das Hinzufügen oder Ersetzen des gesamten Tagssatzes für die angegebene Ressource oder das angegebene Abonnement. Die angegebene Entität kann maximal 50 Tags aufweisen.

Gilt für: