ClientBuildManager.GenerateCodeCompileUnit メソッド
定義
重要
一部の情報は、リリース前に大きく変更される可能性があるプレリリースされた製品に関するものです。 Microsoft は、ここに記載されている情報について、明示または黙示を問わず、一切保証しません。
仮想パスで表されるファイルの codeDOM ツリー、コンパイラ タイプ、およびコンパイラ パラメーターを返します。
オーバーロード
GenerateCodeCompileUnit(String, Type, CompilerParameters, IDictionary) |
仮想パスで表されるファイルの codeDOM ツリー、コンパイラ タイプ、およびコンパイラ パラメーターを返します。 |
GenerateCodeCompileUnit(String, String, Type, CompilerParameters, IDictionary) |
仮想パスで表されるファイルの内容、codeDOM ツリー、コンパイラ タイプ、およびコンパイラ パラメーターを返します。 |
GenerateCodeCompileUnit(String, Type, CompilerParameters, IDictionary)
仮想パスで表されるファイルの codeDOM ツリー、コンパイラ タイプ、およびコンパイラ パラメーターを返します。
public:
System::CodeDom::CodeCompileUnit ^ GenerateCodeCompileUnit(System::String ^ virtualPath, [Runtime::InteropServices::Out] Type ^ % codeDomProviderType, [Runtime::InteropServices::Out] System::CodeDom::Compiler::CompilerParameters ^ % compilerParameters, [Runtime::InteropServices::Out] System::Collections::IDictionary ^ % linePragmasTable);
public System.CodeDom.CodeCompileUnit GenerateCodeCompileUnit (string virtualPath, out Type codeDomProviderType, out System.CodeDom.Compiler.CompilerParameters compilerParameters, out System.Collections.IDictionary linePragmasTable);
member this.GenerateCodeCompileUnit : string * Type * CompilerParameters * IDictionary -> System.CodeDom.CodeCompileUnit
Public Function GenerateCodeCompileUnit (virtualPath As String, ByRef codeDomProviderType As Type, ByRef compilerParameters As CompilerParameters, ByRef linePragmasTable As IDictionary) As CodeCompileUnit
パラメーター
- virtualPath
- String
ファイルへの仮想パス。
- codeDomProviderType
- Type
このメソッドが返されるときに、コードの生成とコンパイルに使用する codeDOM プロバイダーの種類を格納します。
- compilerParameters
- CompilerParameters
このメソッドが返されるときに、ファイルのコンパイル方法を定義するパラメーターを格納します。
- linePragmasTable
- IDictionary
このメソッドが返されるときに、行プラグマの辞書を格納します。
戻り値
指定されたファイルの CodeCompileUnit。
注釈
メソッドは、 GenerateCodeCompileUnit ファイルをコンパイルするために必要な情報を取得します。 CodeCompileUnit戻り値としてのオブジェクトに加えて、3つのパラメーターを返し out
ます。 パラメーターは、 codeDomProviderType
ファイルを生成およびコンパイルするためのプロバイダーの種類を返します。 パラメーターには、 compilerParameters
コンパイル動作を決定するプロパティが含まれています。 パラメーターには、 linePragmasTable
行プラグマの辞書が含まれています。
こちらもご覧ください
適用対象
GenerateCodeCompileUnit(String, String, Type, CompilerParameters, IDictionary)
仮想パスで表されるファイルの内容、codeDOM ツリー、コンパイラ タイプ、およびコンパイラ パラメーターを返します。
public:
System::CodeDom::CodeCompileUnit ^ GenerateCodeCompileUnit(System::String ^ virtualPath, System::String ^ virtualFileString, [Runtime::InteropServices::Out] Type ^ % codeDomProviderType, [Runtime::InteropServices::Out] System::CodeDom::Compiler::CompilerParameters ^ % compilerParameters, [Runtime::InteropServices::Out] System::Collections::IDictionary ^ % linePragmasTable);
public System.CodeDom.CodeCompileUnit GenerateCodeCompileUnit (string virtualPath, string virtualFileString, out Type codeDomProviderType, out System.CodeDom.Compiler.CompilerParameters compilerParameters, out System.Collections.IDictionary linePragmasTable);
member this.GenerateCodeCompileUnit : string * string * Type * CompilerParameters * IDictionary -> System.CodeDom.CodeCompileUnit
Public Function GenerateCodeCompileUnit (virtualPath As String, virtualFileString As String, ByRef codeDomProviderType As Type, ByRef compilerParameters As CompilerParameters, ByRef linePragmasTable As IDictionary) As CodeCompileUnit
パラメーター
- virtualPath
- String
ファイルへの仮想パス。
- virtualFileString
- String
virtualPath
パラメーターで表されるファイルの内容。
- codeDomProviderType
- Type
このメソッドが返されるときに、コードの生成とコンパイルに使用する codeDOM プロバイダーの種類を格納します。
- compilerParameters
- CompilerParameters
このメソッドが返されるときに、virtualPath
パラメーターで表されるファイルのコンパイル方法を定義するプロパティを格納します。
- linePragmasTable
- IDictionary
このメソッドが返されるときに、行プラグマの辞書を格納します。
戻り値
指定されたファイルの CodeCompileUnit。
例外
virtualPath
が null です。
注釈
メソッドは、 GenerateCodeCompileUnit ファイルをコンパイルするために必要な情報を取得します。 CodeCompileUnit戻り値としてのオブジェクトに加えて、3つのパラメーターを返し out
ます。 パラメーターは、 codeDomProviderType
ファイルを生成およびコンパイルするためのプロバイダーの種類を返します。 パラメーターには、 compilerParameters
コンパイル動作を決定するプロパティが含まれています。 パラメーターには、 linePragmasTable
行プラグマの辞書が含まれています。