Gets or sets the global HTTP proxy.
Public Shared Property DefaultWebProxy As IWebProxy
Dim value As IWebProxy value = WebRequest.DefaultWebProxy WebRequest.DefaultWebProxy = value
public static IWebProxy DefaultWebProxy { get; set; }
public: static property IWebProxy^ DefaultWebProxy { IWebProxy^ get (); void set (IWebProxy^ value); }
public static function get DefaultWebProxy () : IWebProxy public static function set DefaultWebProxy (value : IWebProxy)
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.
To get or set the global HTTP proxy. Associated enumeration: Unrestricted
Windows 7, Windows Vista, Windows XP SP2, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP Starter Edition, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003, Windows Server 2000 SP4, Windows Millennium Edition, Windows 98
if you get this exception, see this post:
http://forums.lhotka.net/forums/post/29271.aspx