Export (0) Print
Expand All

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 ()
protected CompilerType GetDefaultCompilerType ()
protected function GetDefaultCompilerType () : CompilerType
Not applicable.

Return Value

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 Element (ASP.NET Settings Schema) 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 98, Windows Server 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0, 2.0

Community Additions

ADD
Show:
© 2014 Microsoft