Freigeben über


SubscriptionResource.GetLocationsAsync Methode

Definition

Dieser Vorgang stellt alle Standorte bereit, die für Ressourcenanbieter verfügbar sind. Jeder Ressourcenanbieter unterstützt jedoch möglicherweise eine Teilmenge dieser Liste.

  • Anforderungspfad/Abonnements/{subscriptionId}/locations
  • Vorgangs-IdSubscriptions_ListLocations
public virtual Azure.AsyncPageable<Azure.ResourceManager.Resources.Models.LocationExpanded> GetLocationsAsync (bool? includeExtendedLocations = default, System.Threading.CancellationToken cancellationToken = default);
abstract member GetLocationsAsync : Nullable<bool> * System.Threading.CancellationToken -> Azure.AsyncPageable<Azure.ResourceManager.Resources.Models.LocationExpanded>
override this.GetLocationsAsync : Nullable<bool> * System.Threading.CancellationToken -> Azure.AsyncPageable<Azure.ResourceManager.Resources.Models.LocationExpanded>
Public Overridable Function GetLocationsAsync (Optional includeExtendedLocations As Nullable(Of Boolean) = Nothing, Optional cancellationToken As CancellationToken = Nothing) As AsyncPageable(Of LocationExpanded)

Parameter

includeExtendedLocations
Nullable<Boolean>

Gibt an, ob erweiterte Standorte einbezogen werden sollen.

cancellationToken
CancellationToken

Das zu verwendende Abbruchtoken.

Gibt zurück

Eine asynchrone Auflistung von LocationExpanded , die mehrere Dienstanforderungen durchlaufen kann.

Gilt für: