Compartilhar via


NetworkWatcherCollection.GetAsync(String, CancellationToken) Método

Definição

Obtém o observador de rede especificado por grupo de recursos.

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

Parâmetros

networkWatcherName
String

O nome do observador de rede.

cancellationToken
CancellationToken

O token de cancelamento a ser usado.

Retornos

Exceções

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

networkWatcherName é nulo.

Aplica-se a