DnsOptions.Builder.SetUseHttpStackDnsResolver(DnsOption) 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.
Enables the use of the HTTP-stack-specific DNS resolver.
[Android.Runtime.Register("setUseHttpStackDnsResolver", "(I)Landroid/net/http/DnsOptions$Builder;", "", ApiSince=34)]
public Android.Net.Http.DnsOptions.Builder SetUseHttpStackDnsResolver(Android.Net.Http.DnsOption state);
[<Android.Runtime.Register("setUseHttpStackDnsResolver", "(I)Landroid/net/http/DnsOptions$Builder;", "", ApiSince=34)>]
member this.SetUseHttpStackDnsResolver : Android.Net.Http.DnsOption -> Android.Net.Http.DnsOptions.Builder
Parameters
- state
- DnsOption
one of the DNS_OPTION_* values. Value is one of the following: DnsOptions.DNS_OPTION_UNSPECIFIED; DnsOptions.DNS_OPTION_ENABLED; DnsOptions.DNS_OPTION_DISABLED
Returns
the builder for chaining. This value cannot be null.
- Attributes
Remarks
Enables the use of the HTTP-stack-specific DNS resolver.
Setting this to DnsOptions.DNS_OPTION_ENABLED is necessary for other functionality of DnsOptions to work, unless specified otherwise. See the DnsOptions documentation for more details.
Android reference for android.net.http.DnsOptions.Builder.setUseHttpStackDnsResolver.
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.