Compartir a través de


NetworkWatcherResource.GetPacketCaptureAsync Método

Definición

Obtiene una sesión de captura de paquetes por nombre.

  • Ruta de acceso de solicitud/suscripciones/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers/{networkWatcherName}/packetCaptures/{packetCaptureName}
  • IdPacketCaptures_Get de operaciones
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

Nombre de la sesión de captura de paquetes.

cancellationToken
CancellationToken

Token de cancelación que se va a usar.

Devoluciones

Excepciones

packetCaptureName es una cadena vacía y se esperaba que no estuviera vacía.

packetCaptureName es null.

Se aplica a