Share via


NEPacketTunnelProvider.CancelTunnel(NSError) Method

Definition

Cancels the tunnel with the specified error.

[Foundation.Export("cancelTunnelWithError:")]
[ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)]
public virtual void CancelTunnel(Foundation.NSError? error);
[<Foundation.Export("cancelTunnelWithError:")>]
[<ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)>]
abstract member CancelTunnel : Foundation.NSError -> unit
override this.CancelTunnel : Foundation.NSError -> unit

Parameters

error
NSError

To be added.

This parameter can be null.

Attributes

Applies to