Udostępnij za pośrednictwem


<remove> Element for <httpModules>

Removes a reference to a module. The value of <remove> must exactly match that of a previous <add> directive.

<configuration>
   <system.web>
      <httpModules>
**         <remove>**

<remove name="ModuleName"/>

Required Attribute

Attribute Description
name The name under which the module was previously added using <add>.

Example

The following example removes the OutputCache module.

<configuration>
   <system.web>
      <httpModules>
         <remove name="OutputCache"/>
      </httpModules>
   </system.web>
</configuration>

Requirements

Contained Within: <system.web>

Web Platform: IIS 5.0, IIS 5.1, IIS 6.0

Configuration File: Machine.config, Web.config

Configuration Section Handler: System.Web.Configuration.HttpModulesConfigurationHandler

See Also

<httpModules> Element | ASP.NET Configuration | ASP.NET Settings Schema