Dela via


UserManager.DisallowAddManagedProfile Field

Definition

Specifies if a user is disallowed from adding managed profiles.

[Android.Runtime.Register("DISALLOW_ADD_MANAGED_PROFILE", ApiSince=26)]
public const string DisallowAddManagedProfile;
[<Android.Runtime.Register("DISALLOW_ADD_MANAGED_PROFILE", ApiSince=26)>]
val mutable DisallowAddManagedProfile : string

Field Value

Attributes

Remarks

Specifies if a user is disallowed from adding managed profiles.

The default value for an unmanaged user is false. For users with a device owner set, the default is true.

This restriction has no effect on managed profiles.

Key for user restrictions.

Type: Boolean

This member is deprecated. As the ability to have a managed profile on a fully-managed device has been removed from the platform, this restriction will be silently ignored when applied by the device owner.

Java documentation for android.os.UserManager.DISALLOW_ADD_MANAGED_PROFILE.

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