共用方式為


DevicePolicyManager.MinimumRequiredWifiSecurityLevel Property

Definition

Returns the current Wi-Fi minimum security level. -or- Called by device owner or profile owner of an organization-owned managed profile to specify the minimum security level required for Wi-Fi networks.

public virtual int MinimumRequiredWifiSecurityLevel { [Android.Runtime.Register("getMinimumRequiredWifiSecurityLevel", "()I", "GetGetMinimumRequiredWifiSecurityLevelHandler", ApiSince=33)] get; [Android.Runtime.Register("setMinimumRequiredWifiSecurityLevel", "(I)V", "GetSetMinimumRequiredWifiSecurityLevel_IHandler", ApiSince=33)] [Android.Runtime.RequiresPermission("android.permission.MANAGE_DEVICE_POLICY_WIFI")] set; }
[<get: Android.Runtime.Register("getMinimumRequiredWifiSecurityLevel", "()I", "GetGetMinimumRequiredWifiSecurityLevelHandler", ApiSince=33)>]
[<set: Android.Runtime.Register("setMinimumRequiredWifiSecurityLevel", "(I)V", "GetSetMinimumRequiredWifiSecurityLevel_IHandler", ApiSince=33)>]
[<set: Android.Runtime.RequiresPermission("android.permission.MANAGE_DEVICE_POLICY_WIFI")>]
member this.MinimumRequiredWifiSecurityLevel : int with get, set

Property Value

Attributes

Remarks

Property getter documentation:

Returns the current Wi-Fi minimum security level.

Java documentation for android.app.admin.DevicePolicyManager.getMinimumRequiredWifiSecurityLevel().

Property setter documentation:

Called by device owner or profile owner of an organization-owned managed profile to specify the minimum security level required for Wi-Fi networks. The device may not connect to networks that do not meet the minimum security level. If the current network does not meet the minimum security level set, it will be disconnected.

The following shows the Wi-Fi security levels from the lowest to the highest security level: #WIFI_SECURITY_OPEN#WIFI_SECURITY_PERSONAL#WIFI_SECURITY_ENTERPRISE_EAP#WIFI_SECURITY_ENTERPRISE_192

Java documentation for android.app.admin.DevicePolicyManager.setMinimumRequiredWifiSecurityLevel(int).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to