Share via


DefaultWebProxy Property

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

Gets or sets the global HTTP proxy.

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

Syntax

'Declaration
Public Shared Property DefaultWebProxy As IWebProxy
public static IWebProxy DefaultWebProxy { get; set; }
public:
static property IWebProxy^ DefaultWebProxy {
    IWebProxy^ get ();
    void set (IWebProxy^ value);
}
static member DefaultWebProxy : IWebProxy with get, set
static function get DefaultWebProxy () : IWebProxy
static function set DefaultWebProxy (value : IWebProxy)

Property Value

Type: System.Net. . :: . .IWebProxy
An IWebProxy used by every call to instances of WebRequest.

Remarks

The DefaultWebProxy property gets or sets the global proxy. The DefaultWebProxy property determines the default proxy that all WebRequest instances use if the request supports proxies and no proxy is set explicitly using the Proxy property. Proxies are currently supported by FtpWebRequest and HttpWebRequest.

If the DefaultWebProxy property is set to null, all subsequent instances of the WebRequest class created by the Create or CreateDefault methods do not have a proxy.

.NET Framework Security

See Also

Reference

WebRequest Class

System.Net Namespace