ProxyInfo.BuildDirectProxy 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
| 名称 | 说明 |
|---|---|
| BuildDirectProxy(String, Int32) |
构造一个 |
| BuildDirectProxy(String, Int32, IList<String>) |
构造一个 |
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 端口。
返回
为提供的主机和端口提供新的直接代理配置。
- 特性
注解
构造一个 ProxyInfo 对象,该对象指向指定主机和端口上的 Direct 代理。
代理将不用于访问排除列表中的任何主机 exclList。
本页的某些部分是根据 创建和共享的工作进行的修改,并根据 许可证中所述的条款使用。