Compartilhar via


NetworkCloudExtensions.GetNetworkCloudL2NetworksAsync Método

Definição

Obtenha uma lista de redes de camada 2 (L2) na assinatura fornecida.

  • Caminho da Solicitação/assinaturas/{subscriptionId}/providers/Microsoft.NetworkCloud/l2Networks
  • IdL2Networks_ListBySubscription de operação
public static Azure.AsyncPageable<Azure.ResourceManager.NetworkCloud.NetworkCloudL2NetworkResource> GetNetworkCloudL2NetworksAsync (this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, System.Threading.CancellationToken cancellationToken = default);
static member GetNetworkCloudL2NetworksAsync : Azure.ResourceManager.Resources.SubscriptionResource * System.Threading.CancellationToken -> Azure.AsyncPageable<Azure.ResourceManager.NetworkCloud.NetworkCloudL2NetworkResource>
<Extension()>
Public Function GetNetworkCloudL2NetworksAsync (subscriptionResource As SubscriptionResource, Optional cancellationToken As CancellationToken = Nothing) As AsyncPageable(Of NetworkCloudL2NetworkResource)

Parâmetros

subscriptionResource
SubscriptionResource

A SubscriptionResource instância na qual o método será executado.

cancellationToken
CancellationToken

O token de cancelamento a ser usado.

Retornos

Uma coleção assíncrona de NetworkCloudL2NetworkResource que pode levar várias solicitações de serviço para iterar.

Aplica-se a