Compartir a través de


NetworkWatcherResource.GetPacketCapture(String, CancellationToken) 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 Azure.Response<Azure.ResourceManager.Network.PacketCaptureResource> GetPacketCapture (string packetCaptureName, System.Threading.CancellationToken cancellationToken = default);
abstract member GetPacketCapture : string * System.Threading.CancellationToken -> Azure.Response<Azure.ResourceManager.Network.PacketCaptureResource>
override this.GetPacketCapture : string * System.Threading.CancellationToken -> Azure.Response<Azure.ResourceManager.Network.PacketCaptureResource>
Public Overridable Function GetPacketCapture (packetCaptureName As String, Optional cancellationToken As CancellationToken = Nothing) As 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