SubscriptionsOperationsExtensions.GetAsync(ISubscriptionsOperations, String, CancellationToken) Method

Definition

Gets details about a specified subscription.

public static System.Threading.Tasks.Task<Microsoft.Azure.Management.ResourceManager.Models.Subscription> GetAsync (this Microsoft.Azure.Management.ResourceManager.ISubscriptionsOperations operations, string subscriptionId, System.Threading.CancellationToken cancellationToken = default);
static member GetAsync : Microsoft.Azure.Management.ResourceManager.ISubscriptionsOperations * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Azure.Management.ResourceManager.Models.Subscription>
<Extension()>
Public Function GetAsync (operations As ISubscriptionsOperations, subscriptionId As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Subscription)

Parameters

operations
ISubscriptionsOperations

The operations group for this extension method.

subscriptionId
System.String

The ID of the target subscription.

cancellationToken
System.Threading.CancellationToken

The cancellation token.

Returns

System.Threading.Tasks.Task<Subscription>

Applies to