语言

ProxyInfo.BuildDirectProxy 方法

定义

重载

名称 说明
BuildDirectProxy(String, Int32)

构造一个 ProxyInfo 对象,该对象指向指定主机和端口上的 Direct 代理。

BuildDirectProxy(String, Int32, IList<String>)

构造一个 ProxyInfo 对象,该对象指向指定主机和端口上的 Direct 代理。

BuildDirectProxy(String, Int32)

构造一个 ProxyInfo 对象,该对象指向指定主机和端口上的 Direct 代理。

[Android.Runtime.Register("buildDirectProxy", "(Ljava/lang/String;I)Landroid/net/ProxyInfo;", "")]
public static Android.Net.ProxyInfo? BuildDirectProxy(string? host, int port);
[<Android.Runtime.Register("buildDirectProxy", "(Ljava/lang/String;I)Landroid/net/ProxyInfo;", "")>]
static member BuildDirectProxy : string * int -> Android.Net.ProxyInfo

参数

host
String

HTTP 代理的主机名。

port
Int32

HTTP 代理的 TCP 端口。

返回

为提供的主机和端口提供新的直接代理配置。

特性

注解

Java文档android.net.ProxyInfo.buildDirectProxy(java.lang.String, int)。

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

适用于

BuildDirectProxy(String, Int32, IList<String>)

构造一个 ProxyInfo 对象,该对象指向指定主机和端口上的 Direct 代理。

[Android.Runtime.Register("buildDirectProxy", "(Ljava/lang/String;ILjava/util/List;)Landroid/net/ProxyInfo;", "")]
public static Android.Net.ProxyInfo? BuildDirectProxy(string? host, int port, System.Collections.Generic.IList<string>? exclList);
[<Android.Runtime.Register("buildDirectProxy", "(Ljava/lang/String;ILjava/util/List;)Landroid/net/ProxyInfo;", "")>]
static member BuildDirectProxy : string * int * System.Collections.Generic.IList<string> -> Android.Net.ProxyInfo

参数

host
String

HTTP 代理的主机名。

port
Int32

HTTP 代理的 TCP 端口。

exclList
IList<String>

要排除在连接的连接上使用代理的主机。 这些主机可以使用通配符,例如 *.example.com。

返回

为提供的主机和端口提供新的直接代理配置。

特性

注解

构造一个 ProxyInfo 对象,该对象指向指定主机和端口上的 Direct 代理。

代理将不用于访问排除列表中的任何主机 exclList。

Java文档android.net.ProxyInfo.buildDirectProxy(java.lang.String, int, java.util.List<java.lang.String>)。

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

适用于