CompilationSection Class
.NET Framework 3.0
Defines configuration settings that are used to support the compilation infrastructure of Web applications. This class cannot be inherited.
Namespace: System.Web.Configuration
Assembly: System.Web (in system.web.dll)
Assembly: System.Web (in system.web.dll)
The CompilationSection class provides a way to programmatically access and modify the content of the compilation section of the configuration file.
| Topic | Location |
|---|---|
| Walkthrough: Developing Web Sites Using Multiple Programming Languages | Building ASP .NET Web Applications |
| How To: Secure an ASP.NET Application on a Shared Server | Building ASP .NET Web Applications |
| How To: Secure an ASP.NET Application on a Shared Server | Building ASP .NET Web Applications |
| Walkthrough: Developing Web Sites Using Multiple Programming Languages | Building ASP .NET Web Applications |
This example demonstrates how to specify values declaratively for several attributes of the compilation section, which can also be accessed as members of the CompilationSection class.
The following configuration file example shows how to specify values declaratively for the compilation section.
<system.web>
<compilation
tempDirectory=""
debug="False"
strict="False"
explicit="True"
batch="True"
batchTimeout="900"
maxBatchSize="1000"
maxBatchGeneratedFileSize="1000"
numRecompilesBeforeAppRestart="15"
defaultLanguage="vb"
urlLinePragmas="False"
assemblyPostProcessorType="">
<assemblies>
<clear />
</assemblies>
<buildProviders>
<clear />
</buildProviders>
<expressionBuilders>
<clear />
</expressionBuilders>
</compilation>
</system.web>
The following code example demonstrates how to use members of the CompilationSection class.
System.Object
System.Configuration.ConfigurationElement
System.Configuration.ConfigurationSection
System.Web.Configuration.CompilationSection
System.Configuration.ConfigurationElement
System.Configuration.ConfigurationSection
System.Web.Configuration.CompilationSection
Community Additions
ADD
Show: