共用方式為


GlobalProxySelection 類別

定義

警告

GlobalProxySelection has been deprecated. Use WebRequest.DefaultWebProxy instead to access and set the global default proxy. Use 'null' instead of GetEmptyWebProxy.

警告

This class has been deprecated. Please use WebRequest.DefaultWebProxy instead to access and set the global default proxy. Use 'null' instead of GetEmptyWebProxy. https://go.microsoft.com/fwlink/?linkid=14202

警告

This class has been deprecated. Please use WebRequest.DefaultWebProxy instead to access and set the global default proxy. Use 'null' instead of GetEmptyWebProxy. http://go.microsoft.com/fwlink/?linkid=14202

包含所有 HTTP 請求的全域預設代理實例。

public ref class GlobalProxySelection
[System.Obsolete("GlobalProxySelection has been deprecated. Use WebRequest.DefaultWebProxy instead to access and set the global default proxy. Use 'null' instead of GetEmptyWebProxy.")]
public class GlobalProxySelection
[System.Obsolete("This class has been deprecated. Please use WebRequest.DefaultWebProxy instead to access and set the global default proxy. Use 'null' instead of GetEmptyWebProxy. https://go.microsoft.com/fwlink/?linkid=14202")]
public class GlobalProxySelection
[System.Obsolete("This class has been deprecated. Please use WebRequest.DefaultWebProxy instead to access and set the global default proxy. Use 'null' instead of GetEmptyWebProxy. http://go.microsoft.com/fwlink/?linkid=14202")]
public class GlobalProxySelection
public class GlobalProxySelection
[<System.Obsolete("GlobalProxySelection has been deprecated. Use WebRequest.DefaultWebProxy instead to access and set the global default proxy. Use 'null' instead of GetEmptyWebProxy.")>]
type GlobalProxySelection = class
[<System.Obsolete("This class has been deprecated. Please use WebRequest.DefaultWebProxy instead to access and set the global default proxy. Use 'null' instead of GetEmptyWebProxy. https://go.microsoft.com/fwlink/?linkid=14202")>]
type GlobalProxySelection = class
[<System.Obsolete("This class has been deprecated. Please use WebRequest.DefaultWebProxy instead to access and set the global default proxy. Use 'null' instead of GetEmptyWebProxy. http://go.microsoft.com/fwlink/?linkid=14202")>]
type GlobalProxySelection = class
type GlobalProxySelection = class
Public Class GlobalProxySelection
繼承
GlobalProxySelection
屬性

備註

GlobalProxySelection 儲存了預設代理的設定,該代理用來 WebRequest 聯絡超出本地網路的網際網路網站。 預設代理設定由全域或應用程式設定檔初始化,並可針對個別請求覆寫或透過設定 HttpWebRequest.Proxy 該方法的結果 GetEmptyWebProxy 來停用。

儲存在代理 GlobalProxySelection 中的代理設定會被任何 WebRequest 支援代理且屬性值設定 Proxynull 預設值的衍生物件使用。 代理目前由 、 HttpWebRequestWebClient和 支援FtpWebRequest

請求後的 GlobalProxySelection 變更不會反映在 WebRequest

建構函式

名稱 Description
GlobalProxySelection()
已淘汰.
已淘汰.
已淘汰.

初始化 GlobalProxySelection 類別的新執行個體。

屬性

名稱 Description
Select
已淘汰.
已淘汰.
已淘汰.

取得或設定全域 HTTP 代理。

方法

名稱 Description
Equals(Object)
已淘汰.
已淘汰.
已淘汰.

判斷指定的物件是否等於目前的物件。

(繼承來源 Object)
GetEmptyWebProxy()
已淘汰.
已淘汰.
已淘汰.

回傳一個空代理實例。

GetHashCode()
已淘汰.
已淘汰.
已淘汰.

做為預設哈希函式。

(繼承來源 Object)
GetType()
已淘汰.
已淘汰.
已淘汰.

取得目前實例的 Type

(繼承來源 Object)
MemberwiseClone()
已淘汰.
已淘汰.
已淘汰.

建立目前 Object的淺層複本。

(繼承來源 Object)
ToString()
已淘汰.
已淘汰.
已淘汰.

傳回表示目前 物件的字串。

(繼承來源 Object)

適用於

另請參閱