共用方式為


GlobalProxySelection.Select 屬性

定義

取得或設定全域 HTTP 代理。

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

屬性值

一個 IWebProxy 每次通話 GetResponse() 都會用到的。

例外狀況

集合運算指定的值為 null

呼叫者並未獲得該操作的權限。

備註

如果請求支援代理且沒有明確設定代理Proxy,該Select屬性會設定所有WebRequest實例所使用的代理。 代理目前由 和 HttpWebRequest支援FtpWebRequest

適用於