GlobalProxySelection.Select 屬性
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
取得或設定全域 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。