Freigeben über


SubscriptionExtensions.RenameSubscription Methode

Definition

Der Vorgang zum Umbenennen eines Abonnements

  • Request Path/subscriptions/{subscriptionId}/providers/Microsoft.Subscription/rename
  • Vorgang IdSubscription_Rename
public static Azure.Response<Azure.ResourceManager.Subscription.Models.RenamedSubscriptionId> RenameSubscription (this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, Azure.ResourceManager.Subscription.Models.SubscriptionName body, System.Threading.CancellationToken cancellationToken = default);
static member RenameSubscription : Azure.ResourceManager.Resources.SubscriptionResource * Azure.ResourceManager.Subscription.Models.SubscriptionName * System.Threading.CancellationToken -> Azure.Response<Azure.ResourceManager.Subscription.Models.RenamedSubscriptionId>
<Extension()>
Public Function RenameSubscription (subscriptionResource As SubscriptionResource, body As SubscriptionName, Optional cancellationToken As CancellationToken = Nothing) As Response(Of RenamedSubscriptionId)

Parameter

subscriptionResource
SubscriptionResource

Der SubscriptionResource instance, für den die Methode ausgeführt wird.

body
SubscriptionName

Abonnementname.

cancellationToken
CancellationToken

Das zu verwendende Abbruchtoken.

Gibt zurück

Ausnahmen

body ist NULL.

Gilt für: