指定对受安全套接字层 (SSL) 保护的内容的访问权限。
语法
class AccessSection : ConfigurationSection
方法
下表列出了 AccessSection 类公开的方法。
| 名称 | 描述 |
|---|---|
| GetAllowDefinition | (继承自 ConfigurationSection。) |
| GetAllowLocation | (从 ConfigurationSection 继承。) |
| RevertToParent | (从 ConfigurationSection 继承。) |
| SetAllowDefinition | (从 ConfigurationSection 继承。) |
| SetAllowLocation | (从 ConfigurationSection 继承。) |
属性
下表列出了 AccessSection 类公开的属性。
| 名称 | 描述 |
|---|---|
Location |
(继承自 ConfigurationSection。)一个键属性。 |
Path |
(继承自 ConfigurationSection。)一个键属性。 |
SectionInformation |
(从 ConfigurationSection 继承。) |
SslFlags |
一个读/写 sint32 值,用于配置受 SSL 保护的内容的设置。 后文的“备注”部分列出了可能的值。 |
子类
此类不包含子类。
注解
下表列出了 SSLFlags 属性可能的值。 默认值为 0 (None)。
| 值 | 关键字 | 说明 |
|---|---|---|
| 0 | None |
内容访问不需要 SSL 连接。 |
| 8 | Ssl |
内容访问需要 SSL。 |
| 32 | SslNegotiateCert |
所需的 SSL 类型由客户端和服务器协商。 |
| 64 | SslRequireCert |
服务器需要来自客户端的 SSL 证书。 |
| 256 | Ssl128 |
需要具有 128 位加密的 SSL。 |
继承层次结构
AccessSection
要求
| 类型 | 描述 |
|---|---|
| 客户端 | - IIS 7.0(在 Windows Vista 上) - IIS 7.5(在 Windows 7 上) - IIS 8.0(在 Windows 8 上) - IIS 10.0(在 Windows 10 上) |
| 服务器 | - IIS 7.0(在 Windows Server 2008 上) - IIS 7.5(在 Windows Server 2008 R2 上) - IIS 8.0(在 Windows Server 2012 上) - IIS 8.5(在 Windows Server 2012 R2 上) - IIS 10.0(在 Windows Server 2016 上) |
| 产品 | - IIS 7.0、IIS 7.5、IIS 8.0、IIS 8.5、IIS 10.0 |
| MOF 文件 | WebAdministration.mof |
另请参阅
ConfigurationSection 类
ClientCertificateMappingAuthenticationSection 类
CollectionElement 类
IisClientCertificateMappingAuthenticationSection 类
ManyToOneCertificateMappingElement 类
ManyToOneCertificateMappingRuleElement 类