Export (0) Print
Expand All

remove Element for codeSubDirectories for compilation (ASP.NET Settings Schema)

Removes a reference to an inherited subdirectory name from the collection.

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


<add 
   directoryName="assembly sub-directory, relative to \App_Code"
/>

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

Attributes

Attribute Description

directoryName

Required String attribute.

Defines the name of a subdirectory to remove from the collection. Subdirectory names are relative to the App_Code directory.

Child Elements

None.

Parent Elements

Element Description

configuration

Specifies the required 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.

codeSubDirectories

Defines an ordered collection of subdirectories that contain files to compile at run time.

The remove element removes a reference to an inherited subdirectory name from the collection. The collection is contained in the codeSubDirectories element.

The codeSubDirectories element defines an ordered collection of subdirectories that contain files to compile at run time.

Subdirectory names are relative to the App_Code directory.

There is no default codeSubDirectories element configured for ASP.NET.

The following code example demonstrates how to define an assembly directory location to remove from the collection.

<configuration>
   <system.web>
      <compilation>
        <codeSubDirectories>
          <remove directoryName="/mysite/code/mySubDir"/>
        </codeSubDirectories>
       </compilation>
   </system.web>
</configuration>

Configuration section handler

CompilationSection

Configuration member

Remove

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

Community Additions

ADD
Show:
© 2015 Microsoft