Share via


BuildProvider.GetDefaultCompilerType 메서드

정의

애플리케이션의 기본 언어에 사용되는 컴파일러 설정을 반환합니다.

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

반환

CompilerType

애플리케이션의 기본 언어에 사용되는 컴파일러 설정을 나타내는 CompilerType입니다. 기본 클래스의 경우에는 애플리케이션 구성 파일에 따라 기본 컴파일러가 반환됩니다.

설명

이 메서드를 GetDefaultCompilerType 사용하여 빌드 공급자에 대한 기본 컴파일러 형식을 검사합니다. 이 메서드를 GetDefaultCompilerTypeForLanguage 사용하여 빌드 공급자에 구성된 컴파일러 형식에서 특정 언어 이름을 검사합니다.

기본 BuildProvider 클래스는 애플리케이션 구성 파일의 섹션에 defaultLanguage 있는 compilation 특성 값을 사용하여 기본 컴파일러 형식을 결정합니다. 섹션에 compilation 기본 언어 설정이 없으면 언어 공급자를 사용하여 기본 컴파일러 형식이 VBCodeProvider 설정됩니다.

클래스에서 BuildProvider 파생되는 경우 구현 내에서 속성을 설정하는 CodeCompilerType 데 사용할 GetDefaultCompilerType 수 있습니다.

적용 대상

추가 정보