다음을 통해 공유


SubscriptionExtensions.EnableSubscriptionAsync Method

Definition

The operation to enable a subscription

  • Request Path: /subscriptions/{subscriptionId}/providers/Microsoft.Subscription/enable
  • Operation Id: Subscription_Enable
public static System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Subscription.Models.EnabledSubscriptionId>> EnableSubscriptionAsync (this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, System.Threading.CancellationToken cancellationToken = default);
static member EnableSubscriptionAsync : Azure.ResourceManager.Resources.SubscriptionResource * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Subscription.Models.EnabledSubscriptionId>>
<Extension()>
Public Function EnableSubscriptionAsync (subscriptionResource As SubscriptionResource, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of EnabledSubscriptionId))

Parameters

subscriptionResource
SubscriptionResource

The SubscriptionResource instance the method will execute against.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

subscriptionResource is null.

Applies to