Partilhar via


NetworkWatcherResource.GetPacketCaptureAsync 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>> GetPacketCaptureAsync (string packetCaptureName, System.Threading.CancellationToken cancellationToken = default);
abstract member GetPacketCaptureAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Network.PacketCaptureResource>>
override this.GetPacketCaptureAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Network.PacketCaptureResource>>
Public Overridable Function GetPacketCaptureAsync (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 era esperado que não estivesse vazio.

packetCaptureName é nulo.

Aplica-se a