IWebProxy Interface

Definition

提供基接口以实现对 WebRequest 类的代理访问。Provides the base interface for implementation of proxy access for the WebRequest class.

public interface class IWebProxy
public interface IWebProxy
type IWebProxy = interface
Public Interface IWebProxy
Derived

Remarks

IWebProxy 接口提供 WebRequest 类访问代理服务器所需的方法和属性。The IWebProxy interface provides the methods and properties that are required by the WebRequest class to access proxy servers.

WebProxy 类是 IWebProxy 接口的基实现。The WebProxy class is the base implementation of the IWebProxy interface.

Notes to Implementers

GetProxy(Uri) 方法可用于控制基于目标 URI 的代理使用。The GetProxy(Uri) method can be used to control proxy use based on the destination URI. 使用 IsBypassed(Uri) 方法指示不应将代理用于访问目标服务器。Use the IsBypassed(Uri) method to indicate that the proxy should not be used to reach the destination server.

Properties

Credentials

要提交给代理服务器进行身份验证的凭据。The credentials to submit to the proxy server for authentication.

Methods

GetProxy(Uri)

返回代理的 URI。Returns the URI of a proxy.

IsBypassed(Uri)

指示代理不应用于指定的主机。Indicates that the proxy should not be used for the specified host.

Applies to