IWebProxy Interface

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

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

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

type IWebProxy = interface end

NameDescription
System_CAPS_pubpropertyCredentials

The credentials to submit to the proxy server for authentication.

NameDescription
System_CAPS_pubmethodGetProxy(Uri)

Returns the URI of a proxy.

System_CAPS_pubmethodIsBypassed(Uri)

Indicates that the proxy should not be used for the specified host.

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.

Universal Windows Platform
Available since 8
.NET Framework
Available since 1.1
Portable Class Library
Supported in: portable .NET platforms
Windows Phone
Available since 8.1
Return to top
Show: