caching 的 outputCacheProfiles 的 remove 元素(ASP.NET 设置架构)
[本文档仅供预览,在以后的发行版中可能会发生更改。包含的空白主题用作占位符。]
从配置集合中移除具有指定名称的 OutputCacheProfile 对象。
<remove name="string"/>
特性和元素
以下几节描述了特性、子元素和父元素。
特性
特性 |
说明 |
---|---|
name |
必选的 String 特性。 要从集合中移除的 OutputCacheProfile 元素的名称。 |
子元素
无。
父元素
元素 |
说明 |
---|---|
configuration |
公共语言运行时和 .NET Framework 应用程序所使用的每个配置文件中均需要的根元素。 |
system.web |
指定配置文件中 ASP.NET 配置设置的根元素。 包含各种配置元素,这些配置元素配置 ASP.NET Web 应用程序并控制这些应用程序的行为方式。 |
caching |
为 Web 应用程序配置缓存设置。 |
outputCacheSettings |
指定可以应用于 ASP.NET 应用程序中页的输出缓存配置文件设置。 |
outputCacheProfiles |
包含可以应用于页以指定 OutputCache 指令的缓存设置组。 |
示例
下面的示例从 ASP.NET 应用程序中移除 OutputCacheProfile。
<outputCacheSettings>
<outputCacheProfiles>
<remove name="ServerOnly" />
</outputCacheProfiles>
</outputCacheSettings>
元素信息
配置节处理程序 |
|
配置成员 |
|
可配置的位置 |
Machine.config 根级别的 Web.config 应用程序级别的 Web.config |
要求 |
IIS 5.0、5.1 和 6.0 .NET Framework 2.0 Visual Studio 2005 |
请参见
任务
Walkthrough: Using Output Caching to Enhance Web Site Performance
How to: Configure Specific Folders Using Location Settings
How to: Lock ASP.NET Configuration Settings
参考
caching 的 outputCacheSettings 元素(ASP.NET 设置架构)
caching 的 outputCacheSettings 的 outputCacheProfiles 元素(ASP.NET 设置架构)
caching 的 outputCacheProfiles 的 add 元素(ASP.NET 设置架构)
caching 的 outputCacheProfiles 的 clear 元素(ASP.NET 设置架构)
概念
ASP.NET Configuration File Hierarchy