SubscriptionsOperationsExtensions.ListLocationsAsync Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets all available geo-locations.
public static System.Threading.Tasks.Task<System.Collections.Generic.IEnumerable<Microsoft.Azure.Management.ResourceManager.Fluent.Models.Location>> ListLocationsAsync (this Microsoft.Azure.Management.ResourceManager.Fluent.ISubscriptionsOperations operations, string subscriptionId, System.Threading.CancellationToken cancellationToken = default);
static member ListLocationsAsync : Microsoft.Azure.Management.ResourceManager.Fluent.ISubscriptionsOperations * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<seq<Microsoft.Azure.Management.ResourceManager.Fluent.Models.Location>>
<Extension()>
Public Function ListLocationsAsync (operations As ISubscriptionsOperations, subscriptionId As String, 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.
- 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
Współpracuj z nami w serwisie GitHub
Źródło tej zawartości można znaleźć w witrynie GitHub, gdzie można również tworzyć i przeglądać problemy i żądania ściągnięcia. Więcej informacji znajdziesz w naszym przewodniku dla współtwórców.
Azure SDK for .NET