LinkProperties.SetDnsServers(ICollection<InetAddress>) 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
将其中 LinkProperties DNS 服务器替换为给定CollectionInetAddress的对象。
[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>)。
本页的某些部分是根据 创建和共享的工作进行的修改,并根据 许可证中所述的条款使用。