Partilhar via


NetworkWatcherResource.GetConnectionMonitorAsync Método

Definição

Obtém um monitor de conexão por nome.

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

Parâmetros

connectionMonitorName
String

O nome do monitor de conexão.

cancellationToken
CancellationToken

O token de cancelamento a ser usado.

Retornos

Exceções

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

connectionMonitorName é nulo.

Aplica-se a