Compartilhar via


SubscriptionExtensions.RenameSubscriptionAsync Método

Definição

A operação para renomear uma assinatura

  • Caminho da Solicitação/assinaturas/{subscriptionId}/providers/Microsoft.Subscription/rename
  • IdSubscription_Rename de operação
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

A SubscriptionResource instância na qual o método será executado.

body
SubscriptionName

Nome da Assinatura.

cancellationToken
CancellationToken

O token de cancelamento a ser usado.

Retornos

Exceções

body é nulo.

Aplica-se a