httpModules 的 clear 元素(ASP.NET 设置架构)
更新:2007 年 11 月
从应用程序中移除所有的 httpModules。
<configuration> 元素
system.web 元素(ASP.NET 设置架构)
httpModules 元素(ASP.NET 设置架构)
httpModules 的 clear 元素(ASP.NET 设置架构)
<clear/>
属性和元素
下面几部分描述了属性、子元素和父元素。
属性
无。
子元素
无。
父元素
元素 |
说明 |
---|---|
configuration |
指定公共语言运行库和 .NET Framework 应用程序所使用的每个配置文件中均需要的根元素。 |
system.web |
为 ASP.NET 配置节指定根元素。 |
httpModules |
在一个应用程序内配置 HTTP 模块。 |
示例
下面的代码示例演示如何从应用程序中清除所有的 httpModules。
<configuration>
<system.web>
<httpModules>
<clear/>
</httpModules>
<system.web>
</configuration>
元素信息
配置节处理程序 |
|
配置成员 |
|
可配置的位置 |
Machine.config 根级别的 Web.config 应用程序级别的 Web.config 虚拟或物理目录级别的 Web.config |
要求 |
Microsoft Internet 信息服务 (IIS) 版本 5.0、5.1 或 6.0 .NET Framework 版本 1.0、1.1 或 2.0 Microsoft Visual Studio 2003 或 Visual Studio 2005 |
请参见
任务
概念
参考
httpModules 的 add 元素(ASP.NET 设置架构)
httpModules 的 remove 元素(ASP.NET 设置架构)