System.Net.GlobalProxySelection.Select Property

Gets or sets the global HTTP proxy.

Syntax

public static IWebProxy Select { get; set; }

Value

A System.Net.IWebProxy that identifies the proxy server used by the HttpWebRequest.GetResponse method if no proxy information is specified.

Exceptions

TypeReason
System.Security.SecurityExceptionThe caller does not have permission for the requested operation.

Remarks

The GlobalProxySelection.Select property sets the proxy that all System.Net.WebRequest instances use if the request supports proxies and no proxy is set explicitly using the HttpWebRequest.Proxy property. Proxies are currently supported by System.Net.FtpWebRequest and System.Net.HttpWebRequest.

Permissions

Requirements

Namespace: System.Net
Assembly: System (in System.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0, 4.0.0.0