Freigeben über


UserManager.DisallowConfigPrivateDns Field

Definition

Specifies whether the user is allowed to modify private DNS settings.

[Android.Runtime.Register("DISALLOW_CONFIG_PRIVATE_DNS", ApiSince=29)]
public const string DisallowConfigPrivateDns;
[<Android.Runtime.Register("DISALLOW_CONFIG_PRIVATE_DNS", ApiSince=29)>]
val mutable DisallowConfigPrivateDns : string

Field Value

Attributes

Remarks

Specifies whether the user is allowed to modify private DNS settings.

This restriction can only be set by a device owner or a profile owner of an organization-owned managed profile on the parent profile. When it is set by either of these owners, it applies globally.

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

The default value is false.

Key for user restrictions.

Type: Boolean

Java documentation for android.os.UserManager.DISALLOW_CONFIG_PRIVATE_DNS.

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