This documentation is archived and is not being maintained.

CompilerCollection Class

Represents a collection of Compiler objects. This class cannot be inherited.

Namespace:  System.Web.Configuration
Assembly:  System.Web (in System.Web.dll)

[ConfigurationCollectionAttribute(typeof(Compiler), AddItemName = "compiler", 
	CollectionType = ConfigurationElementCollectionType.BasicMap)]
public sealed class CompilerCollection : ConfigurationElementCollection

The CompilerCollection does not refer to any actual element in the underlying configuration file. It is a construct that allows easy access to the Compiler objects it contains.

The following configuration file example shows how to declaratively specify values for several properties of the CompilerCollection class.

<system.web>
  <compilation 
    tempDirectory="" 
    debug="False" 
    strict="False" 
    explicit="True" 
    batch="True" 
    batchTimeout="900" 
    maxBatchSize="1000" 
    maxBatchGeneratedFileSize="1000" 
    numRecompilesBeforeAppRestart="15" 
    defaultLanguage="vb" 
    urlLinePragmas="False">
    <compilers>
      <compiler 
        compilerOptions=""
        extension=".vbs"
        language="VB;VBScript"
        type="Microsoft.VisualBasic.VBCodeProvider,system, 
          Version=1.0.5000.0, Culture=neutral, 
          PublicKeyToken=b77a5c561934e089"
        warningLevel="1"/>
    </compilers>
  </compilation>
</system.web>

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Windows 7, Windows Vista, Windows XP SP2, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP Starter Edition, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003, Windows Server 2000 SP4, Windows Millennium Edition, Windows 98

The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

.NET Framework

Supported in: 3.5, 3.0, 2.0
Show: