共用方式為


DevicePolicyManager.GetGlobalPrivateDnsHost(ComponentName) Method

Definition

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.

Java documentation for android.app.admin.DevicePolicyManager.getGlobalPrivateDnsHost(android.content.ComponentName).

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