DevicePolicyManager.CurrentFailedPasswordAttempts 属性

定义

检索自上次成功输入密码以来用户输入密码失败的次数。

public virtual int CurrentFailedPasswordAttempts { [Android.Runtime.Register("getCurrentFailedPasswordAttempts", "()I", "GetGetCurrentFailedPasswordAttemptsHandler")] [Android.Runtime.RequiresPermission("android.permission.MANAGE_DEVICE_POLICY_LOCK_CREDENTIALS")] get; }
[<get: Android.Runtime.Register("getCurrentFailedPasswordAttempts", "()I", "GetGetCurrentFailedPasswordAttemptsHandler")>]
[<get: Android.Runtime.RequiresPermission("android.permission.MANAGE_DEVICE_POLICY_LOCK_CREDENTIALS")>]
member this.CurrentFailedPasswordAttempts : int

属性值

自上次正确的密码输入以来,用户输入了错误的密码的次数。

属性

注解

检索自上次成功输入密码以来用户输入密码失败的次数。

可以在返回#getParentProfileInstance(ComponentName)DevicePolicyManager实例上调用此方法,以便检索父用户失败的密码实例数。

呼叫设备管理员必须请求 DeviceAdminInfo#USES_POLICY_WATCH_LOGIN 能够调用此方法;如果没有,将引发安全异常。

在不支持 PackageManager#FEATURE_SECURE_LOCK_SCREEN 功能的设备上,密码始终为空,此方法始终返回 0。

适用于 . 的 android.app.admin.DevicePolicyManager.getCurrentFailedPasswordAttempts()Java 文档

本页的某些部分是根据 Android 开放源代码项目创建和共享的工作进行的修改,并根据 Creative Commons 2.5 属性许可证中所述的术语使用。

适用于