DevicePolicyManager.RemoveActiveAdmin(ComponentName) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.
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.