Compartir a través de


SubscriptionExtensions.RenameSubscriptionAsync Método

Definición

La operación para cambiar el nombre de una suscripción

  • Ruta de acceso de solicitud/suscripciones/{subscriptionId}/providers/Microsoft.Subscription/rename
  • IdSubscription_Rename de operaciones
public static System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Subscription.Models.RenamedSubscriptionId>> RenameSubscriptionAsync (this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, Azure.ResourceManager.Subscription.Models.SubscriptionName body, System.Threading.CancellationToken cancellationToken = default);
static member RenameSubscriptionAsync : Azure.ResourceManager.Resources.SubscriptionResource * Azure.ResourceManager.Subscription.Models.SubscriptionName * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Subscription.Models.RenamedSubscriptionId>>
<Extension()>
Public Function RenameSubscriptionAsync (subscriptionResource As SubscriptionResource, body As SubscriptionName, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of RenamedSubscriptionId))

Parámetros

subscriptionResource
SubscriptionResource

Instancia SubscriptionResource en la que se ejecutará el método.

body
SubscriptionName

Nombre de la suscripción.

cancellationToken
CancellationToken

Token de cancelación que se va a usar.

Devoluciones

Excepciones

body es null.

Se aplica a