你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

NetworkWatcherResource.GetPacketCapture(String, CancellationToken) 方法

定义

按名称获取数据包捕获会话。

  • 请求路径/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers/{networkWatcherName}/packetCaptures/{packetCaptureName}
  • 操作IdPacketCaptures_Get
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)

参数

packetCaptureName
String

数据包捕获会话的名称。

cancellationToken
CancellationToken

要使用的取消标记。

返回

例外

packetCaptureName 是一个空字符串,预期为非空。

packetCaptureName 为 null。

适用于