Partilhar via


PacketCaptureCollection.GetAsync(String, CancellationToken) Método

Definição

Obtém uma sessão de captura de pacotes por nome.

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

Parâmetros

packetCaptureName
String

O nome da sessão de captura de pacotes.

cancellationToken
CancellationToken

O token de cancelamento a ser usado.

Retornos

Exceções

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

packetCaptureName é nulo.

Aplica-se a