次の方法で共有


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 。 基本クラスは、アプリケーション構成ファイルに基づいて既定のコンパイラを返します。

注釈

GetDefaultCompilerType メソッドを使用して、ビルド プロバイダーの既定のコンパイラの種類を調べます。 GetDefaultCompilerTypeForLanguage メソッドを使用して、ビルド プロバイダーで構成されているコンパイラの種類で特定の言語名を調べます。

基本BuildProvider クラスは、アプリケーション構成ファイルの compilation セクションのdefaultLanguage属性値を使用して、既定のコンパイラの種類を決定します。 compilation セクションに既定の言語設定がない場合、既定のコンパイラの種類はVBCodeProvider言語プロバイダーを使用して設定されます。

BuildProvider クラスから派生する場合は、GetDefaultCompilerTypeを使用して、実装内で CodeCompilerType プロパティを設定できます。

適用対象

こちらもご覧ください