VpnProfileState(Int32, String, Boolean, Boolean) Constructor
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.
Initializes a new instance of VpnProfileState.
[Android.Runtime.Register(".ctor", "(ILjava/lang/String;ZZ)V", "", ApiSince=33)]
public VpnProfileState(int state, string? sessionKey, bool alwaysOn, bool lockdown);
[<Android.Runtime.Register(".ctor", "(ILjava/lang/String;ZZ)V", "", ApiSince=33)>]
new Android.Net.VpnProfileState : int * string * bool * bool -> Android.Net.VpnProfileState
Parameters
- state
- Int32
Value is one of the following: STATE_CONNECTED; STATE_CONNECTING; STATE_DISCONNECTED; STATE_FAILED
- sessionKey
- String
The VPN session identifier to store, or null when no session is running.
- alwaysOn
- Boolean
Whether the profile is configured to run as an always-on VPN.
- lockdown
- Boolean
Whether bypassing the VPN is blocked by lockdown mode.
- Attributes