DevicePolicyManager.GetPasswordHistoryLength(ComponentName) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
取得特定管理員或所有對此使用者及其參與設定限制的管理員的當前密碼歷史長度。
[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。
本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。