DevicePolicyManager.GetGlobalPrivateDnsMode(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.
Returns the system-wide Private DNS mode.
[Android.Runtime.Register("getGlobalPrivateDnsMode", "(Landroid/content/ComponentName;)I", "GetGetGlobalPrivateDnsMode_Landroid_content_ComponentName_Handler", ApiSince=29)]
public virtual Android.App.Admin.PrivateDnsMode GetGlobalPrivateDnsMode (Android.Content.ComponentName admin);
[<Android.Runtime.Register("getGlobalPrivateDnsMode", "(Landroid/content/ComponentName;)I", "GetGetGlobalPrivateDnsMode_Landroid_content_ComponentName_Handler", ApiSince=29)>]
abstract member GetGlobalPrivateDnsMode : Android.Content.ComponentName -> Android.App.Admin.PrivateDnsMode
override this.GetGlobalPrivateDnsMode : Android.Content.ComponentName -> Android.App.Admin.PrivateDnsMode
Parameters
- admin
- ComponentName
which DeviceAdminReceiver
this request is associated with.
Returns
one of PRIVATE_DNS_MODE_OFF
, PRIVATE_DNS_MODE_OPPORTUNISTIC
,
PRIVATE_DNS_MODE_PROVIDER_HOSTNAME
or PRIVATE_DNS_MODE_UNKNOWN
.
- Attributes
Remarks
Returns the system-wide Private DNS mode.
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.