GlobalProxySelection 类
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
注意
GlobalProxySelection has been deprecated. Use WebRequest.DefaultWebProxy instead to access and set the global default proxy. Use 'null' instead of GetEmptyWebProxy.
注意
This class has been deprecated. Please use WebRequest.DefaultWebProxy instead to access and set the global default proxy. Use 'null' instead of GetEmptyWebProxy. https://go.microsoft.com/fwlink/?linkid=14202
注意
This class has been deprecated. Please use WebRequest.DefaultWebProxy instead to access and set the global default proxy. Use 'null' instead of GetEmptyWebProxy. http://go.microsoft.com/fwlink/?linkid=14202
包含所有 HTTP 请求的全局默认代理实例。
public ref class GlobalProxySelection
[System.Obsolete("GlobalProxySelection has been deprecated. Use WebRequest.DefaultWebProxy instead to access and set the global default proxy. Use 'null' instead of GetEmptyWebProxy.")]
public class GlobalProxySelection
[System.Obsolete("This class has been deprecated. Please use WebRequest.DefaultWebProxy instead to access and set the global default proxy. Use 'null' instead of GetEmptyWebProxy. https://go.microsoft.com/fwlink/?linkid=14202")]
public class GlobalProxySelection
[System.Obsolete("This class has been deprecated. Please use WebRequest.DefaultWebProxy instead to access and set the global default proxy. Use 'null' instead of GetEmptyWebProxy. http://go.microsoft.com/fwlink/?linkid=14202")]
public class GlobalProxySelection
public class GlobalProxySelection
[<System.Obsolete("GlobalProxySelection has been deprecated. Use WebRequest.DefaultWebProxy instead to access and set the global default proxy. Use 'null' instead of GetEmptyWebProxy.")>]
type GlobalProxySelection = class
[<System.Obsolete("This class has been deprecated. Please use WebRequest.DefaultWebProxy instead to access and set the global default proxy. Use 'null' instead of GetEmptyWebProxy. https://go.microsoft.com/fwlink/?linkid=14202")>]
type GlobalProxySelection = class
[<System.Obsolete("This class has been deprecated. Please use WebRequest.DefaultWebProxy instead to access and set the global default proxy. Use 'null' instead of GetEmptyWebProxy. http://go.microsoft.com/fwlink/?linkid=14202")>]
type GlobalProxySelection = class
type GlobalProxySelection = class
Public Class GlobalProxySelection
- 继承
-
GlobalProxySelection
- 属性
注解
存储 GlobalProxySelection 实例用来联系本地网络之外的 Internet 站点的默认代理的代理 WebRequest 设置。 默认代理设置是从全局配置文件或应用程序配置文件初始化的,可以通过将 HttpWebRequest.Proxy 属性设置为方法的结果 GetEmptyWebProxy 来替代单个请求或禁用该设置。
存储在其中GlobalProxySelection的代理设置由支持代理且其Proxy属性值设置为 null (默认值)的任何WebRequest派生对象使用。 代理当前受 FtpWebRequest支持, HttpWebRequest并且 WebClient。
注意GlobalProxySelection发出请求后所做的更改不会反映在一个WebRequest中。
构造函数
| 名称 | 说明 |
|---|---|
| GlobalProxySelection() |
已过时.
已过时.
已过时.
初始化 GlobalProxySelection 类的新实例。 |
属性
| 名称 | 说明 |
|---|---|
| Select |
已过时.
已过时.
已过时.
获取或设置全局 HTTP 代理。 |
方法
| 名称 | 说明 |
|---|---|
| Equals(Object) |
已过时.
已过时.
已过时.
确定指定的对象是否等于当前对象。 (继承自 Object) |
| GetEmptyWebProxy() |
已过时.
已过时.
已过时.
返回一个空的代理实例。 |
| GetHashCode() |
已过时.
已过时.
已过时.
用作默认哈希函数。 (继承自 Object) |
| GetType() |
已过时.
已过时.
已过时.
获取当前实例的 Type。 (继承自 Object) |
| MemberwiseClone() |
已过时.
已过时.
已过时.
创建当前 Object的浅表副本。 (继承自 Object) |
| ToString() |
已过时.
已过时.
已过时.
返回一个表示当前对象的字符串。 (继承自 Object) |