語言

DevicePolicyManager.RemoveActiveAdmin(ComponentName) 方法

定義

移除現有的行政組件。

[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 所創建與分享的作品,並依授權條款所描述的使用進行修改。

適用於