VpnProfileState(Int32, String, Boolean, Boolean) 建構函式
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
初始化一個新的 實 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
參數
- state
- Int32
狀態與儲存。 請使用由 Connected、 Connecting、 Disconnected或 Failed所代表的其中一個值。 其他整數則在未經驗證的情況下儲存。
- sessionKey
- String
要儲存的 VPN 會話識別碼,或 null。
- alwaysOn
- Boolean
要儲存的恆常連線旗標的值。
- lockdown
- Boolean
鎖定標記要儲存的值。
- 屬性
備註
Java 文件 android.net.VpnProfileState.VpnProfileState(int, java.lang.String, boolean, boolean)。