共用方式為


AuthorizationSection 類別1

設定存取 URL 的授權。

Syntax

class AuthorizationSection : ConfigurationSectionWithCollection  

方法

下表列出 類別所 AuthorizationSection 公開的方法。

名稱 描述
加入 (繼承自 ConfigurationSectionWithCollection.)
清除 (繼承自 ConfigurationSectionWithCollection。)
Get (繼承自 ConfigurationSectionWithCollection。)
GetAllowDefinition (繼承自 ConfigurationSection.)
GetAllowLocation (繼承自 ConfigurationSection。)
移除 (繼承自 ConfigurationSectionWithCollection。)
RevertToParent (繼承自 ConfigurationSection。)
SetAllowDefinition (繼承自 ConfigurationSection。)
SetAllowLocation (繼承自 ConfigurationSection。)

屬性

下表列出 類別所 AuthorizationSection 公開的屬性。

名稱 描述
Authorization AuthorizationRule值的陣列,指定根據角色、使用者和動詞命令存取 URL。
BypassLoginPages 讀取/寫入 boolean 值。 true 如果 URL 授權讀取 IS_LOGIN_PAGE 伺服器變數並略過授權檢查,則為 , false 否則為 。 預設值為 true
Location (繼承自 ConfigurationSection .) 金鑰屬性。
Path (繼承自 ConfigurationSection .) 金鑰屬性。
SectionInformation (繼承自 ConfigurationSection。)

子類別

這個類別不包含子類別。

繼承階層架構

ConfigurationSection

ConfigurationSectionWithCollection

AuthorizationSection

規格需求

類型 描述
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

另請參閱

ConfigurationSectionWithCollection 類別
AuthorizationRule 類別