Partager via


PeeringExtensions.GetPeeringLocationsAsync Méthode

Définition

Répertorie tous les emplacements de peering disponibles pour le type de peering spécifié.

  • Chemin/abonnements de la demande/{subscriptionId}/providers/Microsoft.Peering/peeringLocations
  • IdPeeringLocations_List d’opération
public static Azure.AsyncPageable<Azure.ResourceManager.Peering.Models.PeeringLocation> GetPeeringLocationsAsync (this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, Azure.ResourceManager.Peering.Models.PeeringLocationsKind kind, Azure.ResourceManager.Peering.Models.PeeringLocationsDirectPeeringType? directPeeringType = default, System.Threading.CancellationToken cancellationToken = default);
static member GetPeeringLocationsAsync : Azure.ResourceManager.Resources.SubscriptionResource * Azure.ResourceManager.Peering.Models.PeeringLocationsKind * Nullable<Azure.ResourceManager.Peering.Models.PeeringLocationsDirectPeeringType> * System.Threading.CancellationToken -> Azure.AsyncPageable<Azure.ResourceManager.Peering.Models.PeeringLocation>
<Extension()>
Public Function GetPeeringLocationsAsync (subscriptionResource As SubscriptionResource, kind As PeeringLocationsKind, Optional directPeeringType As Nullable(Of PeeringLocationsDirectPeeringType) = Nothing, Optional cancellationToken As CancellationToken = Nothing) As AsyncPageable(Of PeeringLocation)

Paramètres

subscriptionResource
SubscriptionResource

Instance SubscriptionResource sur laquelle la méthode s’exécute.

kind
PeeringLocationsKind

Type de peering.

directPeeringType
Nullable<PeeringLocationsDirectPeeringType>

Type de peering direct.

cancellationToken
CancellationToken

Jeton d’annulation à utiliser.

Retours

Collection asynchrone de qui peut nécessiter plusieurs demandes de PeeringLocation service pour itérer.

S’applique à