Share via


IWebProxy Interface

[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]

Provides the base interface for implementation of proxy access for the WebRequest class.

Namespace:  System.Net
Assembly:  System.Http (in System.Http.dll)

Syntax

'Declaration
Public Interface IWebProxy
public interface IWebProxy
public interface class IWebProxy
type IWebProxy =  interface end
public interface IWebProxy

The IWebProxy type exposes the following members.

Methods

  Name Description
Public method GetProxy Returns the URI of a proxy.
Public method IsBypassed Indicates that the proxy should not be used for the specified host.

Top

Remarks

The IWebProxy interface provides the methods and properties that are required by the WebRequest class to access proxy servers.

The WebProxy class is the base implementation of the IWebProxy interface.

Notes to Implementers

The GetProxy method can be used to control proxy use based on the destination URI. Use the IsBypassed method to indicate that the proxy should not be used to reach the destination server.

See Also

Reference

System.Net Namespace