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 パラメーターには、行プラグマのディクショナリが含まれています。