Compartilhar via


NetworkCloudExtensions.GetNetworkCloudL2NetworkAsync Método

Definição

Obter propriedades da rede de camada 2 (L2) fornecida.

  • Caminho da Solicitação/assinaturas/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkCloud/l2Networks/{l2NetworkName}
  • Operação IdL2Networks_Get
public static System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.NetworkCloud.NetworkCloudL2NetworkResource>> GetNetworkCloudL2NetworkAsync (this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource, string l2NetworkName, System.Threading.CancellationToken cancellationToken = default);
static member GetNetworkCloudL2NetworkAsync : Azure.ResourceManager.Resources.ResourceGroupResource * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.NetworkCloud.NetworkCloudL2NetworkResource>>
<Extension()>
Public Function GetNetworkCloudL2NetworkAsync (resourceGroupResource As ResourceGroupResource, l2NetworkName As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of NetworkCloudL2NetworkResource))

Parâmetros

resourceGroupResource
ResourceGroupResource

A ResourceGroupResource instância em que o método será executado.

l2NetworkName
String

O nome da rede L2.

cancellationToken
CancellationToken

O token de cancelamento a ser usado.

Retornos

Exceções

l2NetworkName é uma cadeia de caracteres vazia e esperava-se que não estivesse vazia.

l2NetworkName é nulo.

Aplica-se a