Dela via


UserManager.DisallowNetworkReset Field

Definition

Specifies if a user is disallowed from resetting network settings from Settings.

[Android.Runtime.Register("DISALLOW_NETWORK_RESET", ApiSince=23)]
public const string DisallowNetworkReset;
[<Android.Runtime.Register("DISALLOW_NETWORK_RESET", ApiSince=23)>]
val mutable DisallowNetworkReset : string

Field Value

Attributes

Remarks

Specifies if a user is disallowed from resetting network settings from Settings. This can only be set by device owners and profile owners on the primary user. The default value is false.

This restriction has no effect on secondary users and managed profiles since only the primary user can reset the network settings of the device.

Holders of the permission android.Manifest.permission#MANAGE_DEVICE_POLICY_MOBILE_NETWORK can set this restriction using the DevicePolicyManager APIs mentioned below.

Key for user restrictions.

Type: Boolean

Java documentation for android.os.UserManager.DISALLOW_NETWORK_RESET.

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