Compartir a través de


SubscriptionExtensions.CancelSubscriptionAsync Método

Definición

La operación para cancelar una suscripción

  • Ruta de acceso de solicitud/suscripciones/{subscriptionId}/providers/Microsoft.Subscription/cancel
  • IdSubscription_Cancel de operación
public static System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Subscription.Models.CanceledSubscriptionId>> CancelSubscriptionAsync (this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, System.Threading.CancellationToken cancellationToken = default);
static member CancelSubscriptionAsync : Azure.ResourceManager.Resources.SubscriptionResource * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Subscription.Models.CanceledSubscriptionId>>
<Extension()>
Public Function CancelSubscriptionAsync (subscriptionResource As SubscriptionResource, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of CanceledSubscriptionId))

Parámetros

subscriptionResource
SubscriptionResource

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

cancellationToken
CancellationToken

Token de cancelación que se va a usar.

Devoluciones

Se aplica a