WindowsProxyUsePolicy WindowsProxyUsePolicy WindowsProxyUsePolicy WindowsProxyUsePolicy Enum

定義

此列舉會提供在 Windows 上執行時,HttpClient 用於 Proxy 設定的可用選項。This enumeration provides available options for the proxy settings used by an HttpClient when running on Windows.

public enum class WindowsProxyUsePolicy
public enum WindowsProxyUsePolicy
type WindowsProxyUsePolicy = 
Public Enum WindowsProxyUsePolicy
繼承
WindowsProxyUsePolicyWindowsProxyUsePolicyWindowsProxyUsePolicyWindowsProxyUsePolicy

欄位

DoNotUseProxy DoNotUseProxy DoNotUseProxy DoNotUseProxy 0

這個值表示將不會使用 Proxy。This value indicates that a proxy will not be used.

UseCustomProxy UseCustomProxy UseCustomProxy UseCustomProxy 3

這個值表示會指定實作 IWebProxy 介面的物件來使用自訂 Proxy。This value indicates that a custom proxy is used by specifying an object that implements the IWebProxy interface.

UseWinHttpProxy UseWinHttpProxy UseWinHttpProxy UseWinHttpProxy 1

這個值表示會使用電腦上目前的 WinHTTP API Proxy 組態。This value indicates that the current proxy configuration of the WinHTTP API on the machine is used.

UseWinInetProxy UseWinInetProxy UseWinInetProxy UseWinInetProxy 2

這個值表示會使用電腦上目前的 WinINet API Proxy 組態。This value indicates that the current proxy configuration of the WinINet API on the machine is used. 這些 Proxy 設定可以使用 Internet Explorer 選項進行設定,並支援 WPAD 和 PAC 檔案。The proxy settings can be configured using the Internet Explorer Options and supports WPAD and PAC files.

適用於