DevicePolicyManager.RemoveActiveAdmin(ComponentName) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
移除現有的行政組件。
[Android.Runtime.Register("removeActiveAdmin", "(Landroid/content/ComponentName;)V", "GetRemoveActiveAdmin_Landroid_content_ComponentName_Handler")]
public virtual void RemoveActiveAdmin(Android.Content.ComponentName admin);
[<Android.Runtime.Register("removeActiveAdmin", "(Landroid/content/ComponentName;)V", "GetRemoveActiveAdmin_Landroid_content_ComponentName_Handler")>]
abstract member RemoveActiveAdmin : Android.Content.ComponentName -> unit
override this.RemoveActiveAdmin : Android.Content.ComponentName -> unit
參數
- admin
- ComponentName
行政部門要求移除。
- 屬性
備註
移除現有的行政組件。 這只能由擁有管理元件的應用程式呼叫;如果你嘗試移除別人的元件,系統會拋出安全例外。
請注意,該操作並非同步的,當此方法回傳時,管理員可能仍在活動中(如 #getActiveAdmins()所示)。
Java 文件 android.app.admin.DevicePolicyManager.removeActiveAdmin(android.content.ComponentName)。
本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。