System.Web.Compilation.BuildProvider.GetDefaultCompilerType Method

Returns the compiler settings for the default language in the application.


protected CompilerType GetDefaultCompilerType ()


A System.Web.Compilation.CompilerType that represents the compiler settings for the default language in the application. The base class returns the default compiler based on the application configuration file.


Use the BuildProvider.GetDefaultCompilerType method to examine the default compiler type for a build provider. Use the BuildProvider.GetDefaultCompilerTypeForLanguage(string) method to examine the compiler type configured in a build provider for a specific language name.

The base System.Web.Compilation.BuildProvider class determines the default compiler type using the defaultLanguage attribute value in the compilation section of the application configuration file. If there is no default language setting in the compilation section, the default compiler type is set using the Microsoft.VisualBasic.VBCodeProvider language provider.

When deriving from the System.Web.Compilation.BuildProvider class, you can use BuildProvider.GetDefaultCompilerType to set the BuildProvider.CodeCompilerType property within your implementation.


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