ClientBuildManager.GetCodeDirectoryInformation メソッド

定義

コンパイラ タイプ、コンパイラ パラメーター、および .wsdl ファイルなどの非コード ファイルから生成されたコード ファイルを格納するディレクトリに関する情報を取得します。

public:
 void GetCodeDirectoryInformation(System::String ^ virtualCodeDir, [Runtime::InteropServices::Out] Type ^ % codeDomProviderType, [Runtime::InteropServices::Out] System::CodeDom::Compiler::CompilerParameters ^ % compilerParameters, [Runtime::InteropServices::Out] System::String ^ % generatedFilesDir);
public void GetCodeDirectoryInformation (string virtualCodeDir, out Type codeDomProviderType, out System.CodeDom.Compiler.CompilerParameters compilerParameters, out string generatedFilesDir);
member this.GetCodeDirectoryInformation : string * Type * CompilerParameters * string -> unit
Public Sub GetCodeDirectoryInformation (virtualCodeDir As String, ByRef codeDomProviderType As Type, ByRef compilerParameters As CompilerParameters, ByRef generatedFilesDir As String)

パラメーター

virtualCodeDir
String

情報を取得する対象のディレクトリ。

codeDomProviderType
Type

このメソッドが返されるときに、コードの生成とコンパイルに使用するプロバイダーの種類を格納します。

compilerParameters
CompilerParameters

このメソッドが返されるときに、ファイルのコンパイル方法を定義するパラメーターを格納します。

generatedFilesDir
String

このメソッドが返されるときに、非コード ファイルから生成されたファイルのディレクトリを格納します。

例外

virtualCodeDir が null です。

注釈

メソッドは GetCodeDirectoryInformation 、コード ディレクトリの構築に必要な情報を取得します。 この情報は、3 つの out パラメーターを介して返されます。 パラメーターは codeDomProviderType 、コード ディレクトリ内のファイルを生成およびコンパイルするためのプロバイダー型を返します。 パラメーターには compilerParameters 、コンパイル動作を決定するプロパティが含まれています。 パラメーターは generatedFilesDir 、.wsdl ファイルなど、コード 以外のファイルから生成されたすべてのコード ファイルを含むディレクトリ パスをコード ディレクトリに格納します。

適用対象

こちらもご覧ください