次の方法で共有


SubscriptionResource.GetLocationsAsync メソッド

定義

この操作により、リソース プロバイダーで使用できるすべての場所が提供されます。ただし、各リソース プロバイダーは、このリストのサブセットをサポートする場合があります。

  • 要求パス/サブスクリプション/{subscriptionId}/locations
  • 操作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)

パラメーター

includeExtendedLocations
Nullable<Boolean>

拡張された場所を含めるかどうか。

cancellationToken
CancellationToken

使用する取り消しトークン。

戻り値

反復処理するために複数の LocationExpanded サービス要求を受け取る可能性がある の非同期コレクション。

適用対象