Partilhar via


NetworkGroupCollection.GetAsync(String, CancellationToken) Método

Definição

Obtém o grupo de rede especificado.

  • Caminho da Solicitação/assinaturas/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkManagers/{networkManagerName}/networkGroups/{networkGroupName}
  • IdNetworkGroups_Get de operação
public virtual System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Network.NetworkGroupResource>> GetAsync (string networkGroupName, System.Threading.CancellationToken cancellationToken = default);
abstract member GetAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Network.NetworkGroupResource>>
override this.GetAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Network.NetworkGroupResource>>
Public Overridable Function GetAsync (networkGroupName As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of NetworkGroupResource))

Parâmetros

networkGroupName
String

O nome do grupo de rede.

cancellationToken
CancellationToken

O token de cancelamento a ser usado.

Retornos

Exceções

networkGroupName é uma cadeia de caracteres vazia e era esperado que não estivesse vazio.

networkGroupName é nulo.

Aplica-se a