Edit

Share via


GlobalProxySelection.Select Property

Definition

Gets or sets the global HTTP proxy.

public:
 static property System::Net::IWebProxy ^ Select { System::Net::IWebProxy ^ get(); void set(System::Net::IWebProxy ^ value); };
public static System.Net.IWebProxy Select { get; set; }
static member Select : System.Net.IWebProxy with get, set
Public Shared Property Select As IWebProxy

Property Value

An IWebProxy that every call to GetResponse() uses.

Exceptions

The value specified for a set operation was null.

The caller does not have permission for the requested operation.

Remarks

The Select property sets the 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.

Applies to