Language

DnsOptions.Builder.SetPersistHostCachePeriod(Duration) メソッド

定義

DNS キャッシュの永続化のために、ディスクへの後続の書き込みの間の最小期間を設定します。

[Android.Runtime.Register("setPersistHostCachePeriod", "(Ljava/time/Duration;)Landroid/net/http/DnsOptions$Builder;", "", ApiSince=34)]
public Android.Net.Http.DnsOptions.Builder SetPersistHostCachePeriod(Java.Time.Duration persistHostCachePeriod);
[<Android.Runtime.Register("setPersistHostCachePeriod", "(Ljava/time/Duration;)Landroid/net/http/DnsOptions$Builder;", "", ApiSince=34)>]
member this.SetPersistHostCachePeriod : Java.Time.Duration -> Android.Net.Http.DnsOptions.Builder

パラメーター

persistHostCachePeriod
Duration

返品

チェーン用のビルダー。 この値は null にすることはできません。

属性

注釈

DNS キャッシュの永続化のために、ディスクへの後続の書き込みの間の最小期間を設定します。

setPersistHostCache(int) が DnsOptions.DNS_OPTION_ENABLED に設定されている場合にのみ関連します。

android.net.http.DnsOptions.Builder.setPersistHostCachePeriodの Android リファレンス。

このページの一部は、によって作成および共有され、に記載されている条件に従って使用される作業に基づく変更です。

適用対象