共用方式為


IPacketCapture.StopAsync(CancellationToken) Method

Definition

Stops a specified packet capture session asynchronously.

public System.Threading.Tasks.Task StopAsync (System.Threading.CancellationToken cancellationToken = default);
abstract member StopAsync : System.Threading.CancellationToken -> System.Threading.Tasks.Task
Public Function StopAsync (Optional cancellationToken As CancellationToken = Nothing) As Task

Parameters

cancellationToken
CancellationToken

Returns

Applies to