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 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.

.NET Framework
Available since 2.0
Return to top
Show: