语言

LinkProperties.SetDnsServers(ICollection<InetAddress>) 方法

定义

将其中 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>)。

本页的某些部分是根据 创建和共享的工作进行的修改,并根据 许可证中所述的条款使用。

适用于