语言

DevicePolicyManager.GetMaximumFailedPasswordsForWipe(ComponentName) 方法

定义

对于为此用户及其参与配置文件设置限制的特定管理员或所有管理员,检索擦除设备或配置文件之前允许的当前最大登录尝试次数。

[Android.Runtime.Register("getMaximumFailedPasswordsForWipe", "(Landroid/content/ComponentName;)I", "GetGetMaximumFailedPasswordsForWipe_Landroid_content_ComponentName_Handler")]
public virtual int GetMaximumFailedPasswordsForWipe(Android.Content.ComponentName? admin);
[<Android.Runtime.Register("getMaximumFailedPasswordsForWipe", "(Landroid/content/ComponentName;)I", "GetGetMaximumFailedPasswordsForWipe_Landroid_content_ComponentName_Handler")>]
abstract member GetMaximumFailedPasswordsForWipe : Android.Content.ComponentName -> int
override this.GetMaximumFailedPasswordsForWipe : Android.Content.ComponentName -> int

参数

admin
ComponentName

要检查或 null 聚合所有管理员的管理组件的名称。

返回

特性

注解

对于为此用户及其参与配置文件设置限制的特定管理员或所有管理员,检索擦除设备或配置文件之前允许的当前最大登录尝试次数。 不考虑对具有单独挑战的配置文件的限制。

可以在返回#getParentProfileInstance(ComponentName)的DevicePolicyManager实例上调用此方法,以便检索父配置文件的值。

在不支持 PackageManager#FEATURE_SECURE_LOCK_SCREEN 功能的设备上,密码始终为空,此方法返回一个默认值(0),指示未设置策略。

Java文档android.app.admin.DevicePolicyManager.getMaximumFailedPasswordsForWipe(android.content.ComponentName)。

本页的某些部分是根据 创建和共享的工作进行的修改,并根据 许可证中所述的条款使用。

适用于