System.Net.GlobalProxySelection Class

Contains a global default proxy instance for all HTTP requests.

See Also: GlobalProxySelection Members


[System.Obsolete("Use WebRequest.DefaultProxy instead")]
public class GlobalProxySelection


The System.Net.GlobalProxySelection stores the proxy settings for the default proxy that System.Net.WebRequest instances use to contact Internet sites beyond the local network. The default proxy setting is initialized from the global or application configuration file, and can be overridden for individual requests or disabled by setting the HttpWebRequest.Proxy property to the result of the GlobalProxySelection.GetEmptyWebProxy method.

The proxy settings stored in System.Net.GlobalProxySelection are used by any System.Net.WebRequest derived objects that support proxies and have their WebRequest.Proxy property value set to null (the default). Proxies are currently supported by System.Net.FtpWebRequest, System.Net.HttpWebRequest, and System.Net.WebClient.

Note   Changes to the System.Net.GlobalProxySelection after a request is made are not reflected in a System.Net.WebRequest.

Thread Safety

All public static members of this type are safe for multithreaded operations. No instance members are guaranteed to be thread safe.


Namespace: System.Net
Assembly: System (in System.dll)
Assembly Versions: 1.0.x.x, 1.0.5000.0,,