clear Element for buildProviders for compilation (ASP.NET Settings Schema)

Removes all references to inherited build providers, allowing only the build providers that are added by the current add element.

This element is new in the .NET Framework version 2.0.

<clear/>

Attributes and Elements

The following sections describe attributes, child elements, and parent elements.

Attributes

None.

Child Elements

None.

Parent Elements

Element Description

configuration

Specifies the root element in every configuration file that is used by the common language runtime and the .NET Framework applications.

system.web

Specifies the root element for the ASP.NET configuration section.

compilation

Configures all compilation settings that ASP.NET uses to compile applications.

buildProviders

Defines a collection of build providers that are used to compile custom resource files.

Remarks

The clear element removes all references to inherited build providers in the collection that is contained in the buildproviders element, allowing only the build providers that are added by the current add element.

The buildProviders element defines a collection of build providers that are used to compile custom resource files of a particular file type and generate code during compilation.

Default Configuration

The following default buildProviders element is not explicitly configured in the Machine.config file or in the root Web.config file. However, it is the default configuration that is returned by the application. Items are added to the buildProviders collection in the root Web.config file.

<buildProviders>
   <clear />
</buildProviders>

Element Information

Configuration section handler

CompilationSection

Configuration member

Clear

Configurable locations

Machine.config

Root-level Web.config

Application-level Web.config

Virtual or physical directory–level Web.config

Requirements

Microsoft Internet Information Services (IIS) version 5.0, 5.1, or 6.0

The .NET Framework version 2.0

Microsoft Visual Studio 2003 or Visual Studio 2005

See Also

Tasks

How to: Configure Specific Directories Using Location Settings
How to: Lock ASP.NET Configuration Settings

Reference

buildProviders Element for compilation (ASP.NET Settings Schema)
add Element for buildProviders for compilation (ASP.NET Settings Schema)
remove Element for assemblies for compilation (ASP.NET Settings Schema)
configuration Element (General Settings Schema)
system.web Element (ASP.NET Settings Schema)
compilation Element (ASP.NET Settings Schema)
System.Configuration
System.Web.Configuration
CompilationSection
Clear

Concepts

ASP.NET Compilation Model
ASP.NET Web Page Code Model
ASP.NET Web Site Precompilation Overview
ASP.NET Configuration File Hierarchy and Inheritance
Securing ASP.NET Configuration
ASP.NET Configuration Scenarios

Other Resources

General Configuration Settings (ASP.NET)
ASP.NET Configuration Settings
Configuring ASP.NET Applications
ASP.NET Configuration Files
ASP.NET Configuration API