Språk

DnsOptions.Builder.SetUseHttpStackDnsResolver(DnsOption) Method

Definition

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.

Applies to