Partilhar via


NetworkGroupCollection.GetIfExistsAsync(String, CancellationToken) Método

Definição

Tenta obter detalhes desse recurso do serviço.

  • 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.NullableResponse<Azure.ResourceManager.Network.NetworkGroupResource>> GetIfExistsAsync (string networkGroupName, System.Threading.CancellationToken cancellationToken = default);
abstract member GetIfExistsAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.NullableResponse<Azure.ResourceManager.Network.NetworkGroupResource>>
override this.GetIfExistsAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.NullableResponse<Azure.ResourceManager.Network.NetworkGroupResource>>
Public Overridable Function GetIfExistsAsync (networkGroupName As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of NullableResponse(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