DevicePolicyManager.GetGlobalPrivateDnsHost(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 host.
[Android.Runtime.Register("getGlobalPrivateDnsHost", "(Landroid/content/ComponentName;)Ljava/lang/String;", "GetGetGlobalPrivateDnsHost_Landroid_content_ComponentName_Handler", ApiSince=29)]
public virtual string? GetGlobalPrivateDnsHost (Android.Content.ComponentName admin);
[<Android.Runtime.Register("getGlobalPrivateDnsHost", "(Landroid/content/ComponentName;)Ljava/lang/String;", "GetGetGlobalPrivateDnsHost_Landroid_content_ComponentName_Handler", ApiSince=29)>]
abstract member GetGlobalPrivateDnsHost : Android.Content.ComponentName -> string
override this.GetGlobalPrivateDnsHost : Android.Content.ComponentName -> string
Parameters
- admin
- ComponentName
which DeviceAdminReceiver
this request is associated with.
Returns
The hostname used for Private DNS queries, null if none is set.
- Attributes
Remarks
Returns the system-wide Private DNS host.
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.