Share via


VpnPlugInProfile.AlwaysOn Property

Definition

Gets or sets a value that indicates whether the VPN profile is for Always-On VPN; that is, whether the profile is capable of being always connected.

public:
 property bool AlwaysOn { bool get(); void set(bool value); };
bool AlwaysOn();

void AlwaysOn(bool value);
public bool AlwaysOn { get; set; }
var boolean = vpnPlugInProfile.alwaysOn;
vpnPlugInProfile.alwaysOn = boolean;
Public Property AlwaysOn As Boolean

Property Value

Boolean

bool

true if the VPN profile is capable of being always connected, otherwise false.

Implements

Windows requirements

App capabilities
networkingVpnProvider

Remarks

When this property value has the value true, the profile is capable of being always-on; when the user also click the always connected setting, the profile actually is always-on.

Applies to

See also