Edit

Share via


NEPacketTunnelProvider.StopTunnelAsync(NEProviderStopReason) Method

Definition

Stops the Tunnel.

public virtual System.Threading.Tasks.Task StopTunnelAsync (NetworkExtension.NEProviderStopReason reason);
abstract member StopTunnelAsync : NetworkExtension.NEProviderStopReason -> System.Threading.Tasks.Task
override this.StopTunnelAsync : NetworkExtension.NEProviderStopReason -> System.Threading.Tasks.Task

Parameters

Returns

A task that represents the asynchronous StopTunnel operation

Remarks

The StopTunnelAsync method is suitable to be used with C# async by returning control to the caller with a Task representing the operation.

To be added.

Applies to