OutputCacheSettingsSection 类

指定可应用于 ASP.NET 应用程序中的页面的输出缓存配置文件设置。

语法

class OutputCacheSettingsSection : ConfigurationSectionWithCollection  

方法

下表列出了 OutputCacheSettingsSection 类公开的方法。

名称 说明
添加 (继承自 ConfigurationSectionWithCollection。)
清除 (从 ConfigurationSectionWithCollection 继承。)
Get (从 ConfigurationSectionWithCollection 继承。)
GetAllowDefinition (继承自 ConfigurationSection。)
GetAllowLocation (从 ConfigurationSection 继承。)
删除 (从 ConfigurationSectionWithCollection 继承。)
RevertToParent (从 ConfigurationSection 继承。)
SetAllowDefinition (从 ConfigurationSection 继承。)
SetAllowLocation (从 ConfigurationSection 继承。)

属性

下表列出了 OutputCacheSettingsSection 类公开的属性。

名称 描述
Location (继承自 ConfigurationSection。)一个键属性。
OutputCacheProfiles 一个 OutputCacheProfileSettings 值,其中包含可应用于页以指定 OutputCache 指令的缓存设置。
Path (继承自 ConfigurationSection。)一个键属性。
SectionInformation (从 ConfigurationSection 继承。)

子类

此类不包含子类。

继承层次结构

ConfigurationSection

ConfigurationSectionWithCollection

OutputCacheSettingsSection

要求

类型 描述
客户端 - 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

另请参阅

System.Web.Configuration.SystemWebCachingSectionGroup.OutputCache
ConfigurationSectionWithCollection 类
OutputCacheProfile 类
OutputCacheProfileSettings 类