DevicePolicyManager.SetProfileEnabled(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.
Sets the enabled state of the profile.
[Android.Runtime.Register("setProfileEnabled", "(Landroid/content/ComponentName;)V", "GetSetProfileEnabled_Landroid_content_ComponentName_Handler")]
public virtual void SetProfileEnabled (Android.Content.ComponentName admin);
[<Android.Runtime.Register("setProfileEnabled", "(Landroid/content/ComponentName;)V", "GetSetProfileEnabled_Landroid_content_ComponentName_Handler")>]
abstract member SetProfileEnabled : Android.Content.ComponentName -> unit
override this.SetProfileEnabled : Android.Content.ComponentName -> unit
Parameters
- admin
- ComponentName
Which DeviceAdminReceiver
this request is associated with.
- Attributes
Remarks
Sets the enabled state of the profile. A profile should be enabled only once it is ready to be used. Only the profile owner can call this.
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.