GlobalProxySelection.GetEmptyWebProxy 方法

定義

回傳一個空代理實例。

public:
 static System::Net::IWebProxy ^ GetEmptyWebProxy();
public static System.Net.IWebProxy GetEmptyWebProxy();
static member GetEmptyWebProxy : unit -> System.Net.IWebProxy
Public Shared Function GetEmptyWebProxy () As IWebProxy

傳回

那個 IWebProxy 裡面沒有任何資訊。

備註

GetEmptyWebProxy 方法會回傳一個空白 IWebProxy 實例,表示沒有代理伺服器用於存取網際網路資源。

你不必呼叫該 GetEmptyWebProxy 方法,而是可以指派 null 給成員,例如 property WebClient.Proxy ,它指定代表物件與遠端伺服器 WebClient 通訊的代理。

適用於