共用方式為


SubscriptionsOperationsExtensions.ListLocationsAsync Method

Definition

Gets all available geo-locations.

public static System.Threading.Tasks.Task<System.Collections.Generic.IEnumerable<Microsoft.Azure.Management.ResourceManager.Models.Location>> ListLocationsAsync (this Microsoft.Azure.Management.ResourceManager.ISubscriptionsOperations operations, string subscriptionId, bool? includeExtendedLocations = default, System.Threading.CancellationToken cancellationToken = default);
static member ListLocationsAsync : Microsoft.Azure.Management.ResourceManager.ISubscriptionsOperations * string * Nullable<bool> * System.Threading.CancellationToken -> System.Threading.Tasks.Task<seq<Microsoft.Azure.Management.ResourceManager.Models.Location>>
<Extension()>
Public Function ListLocationsAsync (operations As ISubscriptionsOperations, subscriptionId As String, Optional includeExtendedLocations As Nullable(Of Boolean) = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of IEnumerable(Of Location))

Parameters

operations
ISubscriptionsOperations

The operations group for this extension method.

subscriptionId
String

The ID of the target subscription.

includeExtendedLocations
Nullable<Boolean>

Whether to include extended locations.

cancellationToken
CancellationToken

The cancellation token.

Returns

Remarks

This operation provides all the locations that are available for resource providers; however, each resource provider may support a subset of this list.

Applies to