BuildProvider.GetDefaultCompilerType Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Returns the compiler settings for the default language in the application.
protected:
System::Web::Compilation::CompilerType ^ GetDefaultCompilerType();
protected System.Web.Compilation.CompilerType GetDefaultCompilerType ();
member this.GetDefaultCompilerType : unit -> System.Web.Compilation.CompilerType
Protected Function GetDefaultCompilerType () As CompilerType
Returns
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.
Remarks
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.
Applies to
See also
.NET
피드백
https://aka.ms/ContentUserFeedback
출시 예정: 2024년 내내 콘텐츠에 대한 피드백 메커니즘으로 GitHub 문제를 단계적으로 폐지하고 이를 새로운 피드백 시스템으로 바꿀 예정입니다. 자세한 내용은 다음을 참조하세요.다음에 대한 사용자 의견 제출 및 보기