LinkProperties.IsPrivateDnsActive Property
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 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.