语言

DevicePolicyManager.GetPasswordHistoryLength(ComponentName) 方法

定义

检索特定管理员或其参与配置文件上设置限制的特定管理员或所有管理员的当前密码历史记录长度。

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

参数

admin
ComponentName

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

返回

密码历史记录的长度

特性

注解

检索特定管理员或其参与配置文件上设置限制的特定管理员或所有管理员的当前密码历史记录长度。 不考虑对具有单独挑战的配置文件的限制。

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

在不支持 PackageManager#FEATURE_SECURE_LOCK_SCREEN 功能的设备上,密码历史记录长度始终为 0。

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

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

适用于