Språk

VpnProfileState(Int32, String, Boolean, Boolean) Constructor

Definition

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

The state to store. Use one of the values represented by Connected, Connecting, Disconnected, or Failed. Other integers are stored without validation.

sessionKey
String

The VPN session identifier to store, or null.

alwaysOn
Boolean

The value to store for the always-on flag.

lockdown
Boolean

The value to store for the lockdown flag.

Attributes

Remarks

Java documentation for android.net.VpnProfileState.VpnProfileState(int, java.lang.String, boolean, boolean).

Applies to