NEPacketTunnelProvider.StopTunnelAsync(NEProviderStopReason) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
- reason
- NEProviderStopReason
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.