This documentation is archived and is not being maintained.

BuildProvider::GetDefaultCompilerType Method

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

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

protected:
CompilerType^ GetDefaultCompilerType()

Return Value

Type: System.Web.Compilation::CompilerType
A 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 GetDefaultCompilerType method to examine the default compiler type for a build provider. Use the GetDefaultCompilerTypeForLanguage method to examine the compiler type configured in a build provider for a specific language name.

The base 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 VBCodeProvider language provider.

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

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: