次の方法で共有


NetworkWatcherResource.GetPacketCaptureAsync メソッド

定義

名前でパケット キャプチャ セッションを取得します。

  • 要求パス/サブスクリプション/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers/{networkWatcherName}/packetCaptures/{packetCaptureName}
  • 操作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))

パラメーター

packetCaptureName
String

パケット キャプチャ セッションの名前。

cancellationToken
CancellationToken

使用する取り消しトークン。

戻り値

例外

packetCaptureName は空の文字列であり、空でないと予想されていました。

packetCaptureName が null です。

適用対象