語言

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)。

本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。

適用於