System.Web.Compilation.CompilerType Class

Represents the compiler settings used within the ASP.NET build environment to generate and compile source code from a virtual path. This class cannot be inherited.

See Also: CompilerType Members

Syntax

public sealed class CompilerType

Remarks

Use the BuildProvider.CodeCompilerType property of a System.Web.Compilation.BuildProvider implementation to examine the settings used to generate and compile source code from a virtual path for that build provider.

The ASP.NET build environment uses System.Web.Compilation.BuildProvider objects to generate source code for custom file types within the project. Classes derived from System.Web.Compilation.BuildProvider provide build details for source files, Web pages, resources, and other custom items. When the build provider requires a specific programming language, it overrides the BuildProvider.CodeCompilerType property and calls the BuildProvider.GetDefaultCompilerType method to return a System.Web.Compilation.CompilerType object for the supported programming language.

To set the System.Web.Compilation.CompilerType object within a build provider implementation, use the BuildProvider.GetDefaultCompilerType method or the BuildProvider.GetDefaultCompilerTypeForLanguage(string) method.

The CompilerType.CodeDomProviderType property specifies the System.CodeDom.Compiler.CodeDomProvider implementation used to generate and compile source code for a build provider. The CompilerType.CompilerParameters property defines the settings used to compile the source code into an assembly.

Requirements

Namespace: System.Web.Compilation
Assembly: System.Web (in System.Web.dll)
Assembly Versions: 2.0.0.0
Since: .NET 2.0