Share via


NEVpnProtocol.DisconnectOnSleep Property

Definition

Gets or sets a Boolean value that controls whether the VPN should disconnect when the device sleeps.

[ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)]
public virtual bool DisconnectOnSleep { [Foundation.Export("disconnectOnSleep")] get; [Foundation.Export("setDisconnectOnSleep:")] set; }
[<ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)>]
[<get: Foundation.Export("disconnectOnSleep")>]
[<set: Foundation.Export("setDisconnectOnSleep:")>]
member this.DisconnectOnSleep : bool with get, set

Property Value

Attributes

Applies to