public class GlobalProxySelection
Object
GlobalProxySelection
System
Networking
Contains a global default proxy instance for all HTTP requests.
The GlobalProxySelection stores the proxy settings for the default proxy that WebRequest instances use to contact Internet sites beyond the local network. The default proxy settings are initialized from a global or application configuration file, and can be overridden for individual requests, or disabled by setting the System.Net.HttpWebRequest.Proxy property to the object returned by the System.Net.GlobalProxySelection.GetEmptyWebProxy method.The proxy settings stored in GlobalProxySelection are used by a HttpWebRequest instance if its System.Net.HttpWebRequest.Proxy property is not set.
System.Net Namespace
GlobalProxySelection Constructors
GlobalProxySelection Constructor
GlobalProxySelection Methods
GlobalProxySelection.GetEmptyWebProxy Method
GlobalProxySelection Properties
protected GlobalProxySelection();
Constructs a new instance of the GlobalProxySelection class.
System.Net.GlobalProxySelection Class, System.Net Namespace
public static IWebProxy GetEmptyWebProxy();
Returns an empty proxy object.
A IWebProxy that contains no information.
The System.Net.GlobalProxySelection.GetEmptyWebProxy method returns an empty IWebProxy instance indicating that no proxy is used to access an Internet resource.
System.Net.GlobalProxySelection Class, System.Net Namespace
public static IWebProxy Select { get; set; }
Gets or sets the global proxy information.
A IWebProxy that identifies the proxy server used by the System.Net.HttpWebRequest.GetResponse method if no proxy information is specified.
Exception Type Condition SecurityException The caller does not have permission for the requested operation.
System.Net.GlobalProxySelection Class, System.Net Namespace