Compartilhar via


NetworkExtensions.GetNetworkWatcherAsync 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}
  • IdNetworkWatchers_Get de operação
public static System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Network.NetworkWatcherResource>> GetNetworkWatcherAsync (this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource, string networkWatcherName, System.Threading.CancellationToken cancellationToken = default);
static member GetNetworkWatcherAsync : Azure.ResourceManager.Resources.ResourceGroupResource * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Network.NetworkWatcherResource>>
<Extension()>
Public Function GetNetworkWatcherAsync (resourceGroupResource As ResourceGroupResource, networkWatcherName As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of NetworkWatcherResource))

Parâmetros

resourceGroupResource
ResourceGroupResource

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

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 era esperado que não estivesse vazio.

networkWatcherName é nulo.

Aplica-se a