Udostępnij za pośrednictwem


DevicePolicyManager.RemoveActiveAdmin(ComponentName) Method

Definition

Remove a current administration component.

[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

Parameters

admin
ComponentName

The administration compononent to remove.

Attributes

Remarks

Remove a current administration component. This can only be called by the application that owns the administration component; if you try to remove someone else's component, a security exception will be thrown.

Note that the operation is not synchronous and the admin might still be active (as indicated by #getActiveAdmins()) by the time this method returns.

Java documentation for android.app.admin.DevicePolicyManager.removeActiveAdmin(android.content.ComponentName).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to