語言

StaticIpConfiguration.Builder.SetDnsServers(IIterable) 方法

定義

設定靜態設定中包含的 DNS 伺服器。

[Android.Runtime.Register("setDnsServers", "(Ljava/lang/Iterable;)Landroid/net/StaticIpConfiguration$Builder;", "", ApiSince=33)]
public Android.Net.StaticIpConfiguration.Builder SetDnsServers(Java.Lang.IIterable dnsServers);
[<Android.Runtime.Register("setDnsServers", "(Ljava/lang/Iterable;)Landroid/net/StaticIpConfiguration$Builder;", "", ApiSince=33)>]
member this.SetDnsServers : Java.Lang.IIterable -> Android.Net.StaticIpConfiguration.Builder

參數

dnsServers
IIterable

DNS伺服器位址的非空迭代。 空的迭代運算會清除預設為空的 DNS 伺服器清單。

傳回

這個建築商。

屬性

備註

Java 文件 android.net.StaticIpConfiguration.Builder.setDnsServers(java.lang.Iterable)。

適用於