Partager via


LinkProperties.IsPrivateDnsActive Property

Definition

Returns whether private DNS is currently in use on this network.

public bool IsPrivateDnsActive { [Android.Runtime.Register("isPrivateDnsActive", "()Z", "", ApiSince=28)] get; }
[<get: Android.Runtime.Register("isPrivateDnsActive", "()Z", "", ApiSince=28)>]
member this.IsPrivateDnsActive : bool

Property Value

true if private DNS is in use, false otherwise.

Attributes

Remarks

Returns whether private DNS is currently in use on this network. When private DNS is in use, applications must not send unencrypted DNS queries as doing so could reveal private user information. Furthermore, if private DNS is in use and #getPrivateDnsServerName is not null, DNS queries must be sent to the specified DNS server.

Java documentation for android.net.LinkProperties.isPrivateDnsActive().

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