Partilhar via


ConnectionMonitorCollection.GetAsync(String, CancellationToken) 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}
  • IdConnectionMonitors_Get de operação
public virtual System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Network.ConnectionMonitorResource>> GetAsync (string connectionMonitorName, System.Threading.CancellationToken cancellationToken = default);
abstract member GetAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Network.ConnectionMonitorResource>>
override this.GetAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Network.ConnectionMonitorResource>>
Public Overridable Function GetAsync (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 era esperado que não estivesse vazio.

connectionMonitorName é nulo.

Aplica-se a