<clear> Element

Removes all references to items appropriate to the parent tag. The <clear> element is a subtag of the <assemblies>, <clientTarget>, <compilers>, <httpHandlers>, <httpModules>, and <serviceDescriptionFormatExtensionTypes> parent tags under <system.web>.

<configuration>
   <system.web>
      <assemblies>
         <clear>
      <clientTarget>
         <clear>
      <compilation>
         <compilers>
            <clear>
      <httpHandlers>
         <clear>
      <httpModules>
         <clear>
      <serviceDescriptionFormatExtensionTypes>
         <clear>
      <webServices>
         <protocols>
            <clear>
      <soapExtensionTypes>
         <clear>
      <soapExtensionReflectorTypes>
         <clear>
      <soapExtensionImporterTypes>
         <clear>

<clear>

Example

The following example clears all assembly references for an application.

<configuration>
   <system.web>  
      <assemblies>
         <clear/>
      </assemblies>
   </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.UI.CompilationConfigurationHandler
- or -
System.Web.Configuration.HttpHandlersSectionHandler
– or -
System.Web.Configuration.HttpModulesConfigurationHandler

See Also

<assemblies> Element | <compilers> Element | <httpHandlers> Element | <httpModules> Element | <serviceDescriptionFormatExtensionTypes> Element | ASP.NET Configuration | ASP.NET Settings Schema