IWebProxy 接口

定义

提供基接口以实现对 WebRequest 类的代理访问。

public interface class IWebProxy
public interface IWebProxy
type IWebProxy = interface
Public Interface IWebProxy
派生

注解

IWebProxy 接口提供类访问代理服务器所需的 WebRequest 方法和属性。

WebProxy 是接口的基本 IWebProxy 实现。

实施者说明

该方法 GetProxy(Uri) 可用于控制基于目标 URI 的代理使用。 IsBypassed(Uri)使用此方法指示不应使用代理来访问目标服务器。

属性

Credentials

要提交给代理服务器进行身份验证的凭据。

方法

GetProxy(Uri)

返回代理的 URI。

IsBypassed(Uri)

指示代理不应用于指定的主机。

适用于