DevicePolicyManager.IsAdminActive(ComponentName) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
如果該管理員元件目前在系統中啟用(啟用),則回傳 true。
[Android.Runtime.Register("isAdminActive", "(Landroid/content/ComponentName;)Z", "GetIsAdminActive_Landroid_content_ComponentName_Handler")]
public virtual bool IsAdminActive(Android.Content.ComponentName admin);
[<Android.Runtime.Register("isAdminActive", "(Landroid/content/ComponentName;)Z", "GetIsAdminActive_Landroid_content_ComponentName_Handler")>]
abstract member IsAdminActive : Android.Content.ComponentName -> bool
override this.IsAdminActive : Android.Content.ComponentName -> bool
參數
- admin
- ComponentName
管理員的部分需要檢查。
傳回
true 如果 admin 系統中目前啟用, false 否則
- 屬性
備註
如果該管理員元件目前在系統中啟用(啟用),則回傳 true。
Java 文件 android.app.admin.DevicePolicyManager.isAdminActive(android.content.ComponentName)。
本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。