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

VirtualNetworkGatewaysOperationsExtensions.StartPacketCaptureAsync 方法

定义

在指定资源组中的虚拟网络网关上启动数据包捕获。

public static System.Threading.Tasks.Task<string> StartPacketCaptureAsync (this Microsoft.Azure.Management.Network.IVirtualNetworkGatewaysOperations operations, string resourceGroupName, string virtualNetworkGatewayName, Microsoft.Azure.Management.Network.Models.VpnPacketCaptureStartParameters parameters = default, System.Threading.CancellationToken cancellationToken = default);
static member StartPacketCaptureAsync : Microsoft.Azure.Management.Network.IVirtualNetworkGatewaysOperations * string * string * Microsoft.Azure.Management.Network.Models.VpnPacketCaptureStartParameters * System.Threading.CancellationToken -> System.Threading.Tasks.Task<string>
<Extension()>
Public Function StartPacketCaptureAsync (operations As IVirtualNetworkGatewaysOperations, resourceGroupName As String, virtualNetworkGatewayName As String, Optional parameters As VpnPacketCaptureStartParameters = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of String)

参数

operations
IVirtualNetworkGatewaysOperations

此扩展方法的操作组。

resourceGroupName
String

资源组的名称。

virtualNetworkGatewayName
String

虚拟网络网关的名称。

parameters
VpnPacketCaptureStartParameters

提供的虚拟网络网关数据包捕获参数,用于在网关上启动数据包捕获。

cancellationToken
CancellationToken

取消标记。

返回

适用于