語言

LinkProperties.SetDnsServers(ICollection<InetAddress>) 方法

定義

用 given LinkProperties of Collection object 取代 DNS 伺服器InetAddress。

[Android.Runtime.Register("setDnsServers", "(Ljava/util/Collection;)V", "", ApiSince=29)]
public void SetDnsServers(System.Collections.Generic.ICollection<Java.Net.InetAddress> dnsServers);
[<Android.Runtime.Register("setDnsServers", "(Ljava/util/Collection;)V", "", ApiSince=29)>]
member this.SetDnsServers : System.Collections.Generic.ICollection<Java.Net.InetAddress> -> unit

參數

dnsServers
ICollection<InetAddress>

Collection在此物件中設定的 DNS 伺服器。

屬性

備註

Java 文件 android.net.LinkProperties.setDnsServers(java.util.Collection<java.net.InetAddress>)。

本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。

適用於