設定 Web Proxy 伺服器預設值。
Syntax
class DefaultProxySection : ConfigurationSectionWithCollection
方法
下表列出 類別所 DefaultProxySection 公開的方法。
| 名稱 | 描述 |
|---|---|
| 加入 | (繼承自 ConfigurationSectionWithCollection.) |
| 清除 | (繼承自 ConfigurationSectionWithCollection。) |
| Get | (繼承自 ConfigurationSectionWithCollection。) |
| GetAllowDefinition | (繼承自 ConfigurationSection.) |
| GetAllowLocation | (繼承自 ConfigurationSection。) |
| 移除 | (繼承自 ConfigurationSectionWithCollection。) |
| RevertToParent | (繼承自 ConfigurationSection。) |
| SetAllowDefinition | (繼承自 ConfigurationSection。) |
| SetAllowLocation | (繼承自 ConfigurationSection。) |
屬性
下表列出 類別所 DefaultProxySection 公開的屬性。
| 名稱 | 描述 |
|---|---|
BypassList |
BypassListSettings值,表示略過 Web Proxy 伺服器的資源。 |
Enabled |
讀取/寫入 boolean 值。 如果使用 Web Proxy 則為 true,否則為 false。 預設值為 true。 |
Location |
(繼承自 ConfigurationSection .) 金鑰屬性。 |
Module |
ModuleSettings值,指定自訂 Web Proxy 實作的類型、元件和版本資訊。 |
Path |
(繼承自 ConfigurationSection .) 金鑰屬性。 |
Proxy |
ProxySettings值,識別要用於 屬性中 BypassList 未指定之資源的 Web Proxy 伺服器。 |
SectionInformation |
(繼承自 ConfigurationSection。) |
UseDefaultCredentials |
讀取/寫入 boolean 值。 true 如果預設認證將用來存取 Web Proxy 伺服器,則為 ;否則為 false 。 預設值為 false。 |
子類別
這個類別不包含子類別。
繼承階層架構
ConfigurationSectionWithCollection
DefaultProxySection
規格需求
| 類型 | 描述 |
|---|---|
| Client | - Windows Vista 上的 IIS 7.0 - Windows 7 上的 IIS 7.5 - Windows 8 上的 IIS 8.0 - Windows 10上的 IIS 10.0 |
| 伺服器 | - Windows Server 2008 上的 IIS 7.0 - Windows Server 2008 R2 上的 IIS 7.5 - Windows Server 2012 上的 IIS 8.0 - Windows Server 2012 R2 上的 IIS 8.5 - Windows Server 2016上的 IIS 10.0 |
| 產品 | - IIS 7.0、IIS 7.5、IIS 8.0、IIS 8.5、IIS 10.0 |
| MOF 檔案 | WebAdministration.mof |
另請參閱
BypassElement 類別
BypassListSettings 類別
ConfigurationSectionWithCollection 類別
ModuleSettings 類別
ProxySettings 類別