DevicePolicyManager.IsOrganizationOwnedDeviceWithManagedProfile Property
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.
Apps can use this method to find out if the device was provisioned as organization-owend device with a managed profile.
public virtual bool IsOrganizationOwnedDeviceWithManagedProfile { [Android.Runtime.Register("isOrganizationOwnedDeviceWithManagedProfile", "()Z", "GetIsOrganizationOwnedDeviceWithManagedProfileHandler", ApiSince=30)] get; }
[<get: Android.Runtime.Register("isOrganizationOwnedDeviceWithManagedProfile", "()Z", "GetIsOrganizationOwnedDeviceWithManagedProfileHandler", ApiSince=30)>]
member this.IsOrganizationOwnedDeviceWithManagedProfile : bool
Property Value
true
if the device was provisioned as organization-owned device,
false
otherwise.
- Attributes
Remarks
Apps can use this method to find out if the device was provisioned as organization-owend device with a managed profile.
This, together with checking whether the device has a device owner (by calling #isDeviceOwnerApp
), could be used to learn whether the device is owned by an organization or an individual: If this method returns true OR #isDeviceOwnerApp
returns true (for any package), then the device is owned by an organization. Otherwise, it's owned by an individual.
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.