IVpnProfile.AlwaysOn Property

Definition

Gets or sets the AlwayOn property. If true, indicates that the VPN profile is 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 = iVpnProfile.alwaysOn;
iVpnProfile.alwaysOn = boolean;
Public Property AlwaysOn As Boolean

Property Value

Boolean

bool

If the VPN profile is an AlwaysOn profile, it is TRUE; otherwise , it is FALSE.

Windows requirements

App capabilities
networkingVpnProvider

Applies to