GlobalProxySelection Class
Contains a global default proxy instance for all HTTP requests.
Assembly: System (in System.dll)
| Name | Description | |
|---|---|---|
![]() | GlobalProxySelection() | Initializes a new instance of the GlobalProxySelection class. |
| Name | Description | |
|---|---|---|
![]() ![]() | Select | Gets or sets the global HTTP proxy. |
| Name | Description | |
|---|---|---|
![]() | Equals(Object^) | Determines whether the specified object is equal to the current object.(Inherited from Object.) |
![]() | Finalize() | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.(Inherited from Object.) |
![]() ![]() | GetEmptyWebProxy() | Returns an empty proxy instance. |
![]() | GetHashCode() | Serves as the default hash function. (Inherited from Object.) |
![]() | GetType() | |
![]() | MemberwiseClone() | |
![]() | ToString() | Returns a string that represents the current object.(Inherited from Object.) |
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 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 GetEmptyWebProxy method.
The proxy settings stored in GlobalProxySelection are used by any WebRequest derived objects that support proxies and have their Proxy property value set to null (the default). Proxies are currently supported by FtpWebRequest, HttpWebRequest, and WebClient.
Note Changes to the GlobalProxySelection after a request is made are not reflected in a WebRequest.
Available since 1.1
Any public static ( Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.



