BuildProvider.GetCustomString(CompilerResults) メソッド

定義

コンパイルしたアセンブリに保存される文字列を生成します。

public:
 virtual System::String ^ GetCustomString(System::CodeDom::Compiler::CompilerResults ^ results);
public virtual string GetCustomString (System.CodeDom.Compiler.CompilerResults results);
abstract member GetCustomString : System.CodeDom.Compiler.CompilerResults -> string
override this.GetCustomString : System.CodeDom.Compiler.CompilerResults -> string
Public Overridable Function GetCustomString (results As CompilerResults) As String

パラメーター

results
CompilerResults

ビルド プロバイダーの仮想パスのコンパイル結果。

戻り値

ビルド環境内に保持される文字列。または、BuildProvider インスタンスが GetCustomString(CompilerResults) を実装しない場合は null

注釈

オブジェクトの メソッドはGetCompiledCustomString、入力仮想パスのビルド プロバイダーのインスタンスを作成し、 オブジェクトの GetCustomString メソッドをBuildProvider呼び出BuildManagerします。

基底BuildProviderクラスは、 が実装されていないことを示す メソッドに対GetCustomStringして GetCustomString を返nullします。

特定のビルド プロバイダーの実装では、 メソッドの代わりに をGetGeneratedType実装GetCustomStringできます。 オブジェクトは BuildProvider 通常、 を使用 GetGeneratedType して仮想パスの Type オブジェクトを返します。 ただし、 メソッドを GetCustomString 使用して、オブジェクトが BuildProvider 仮想パスから複数の型を生成できることを示すことができます。

適用対象

こちらもご覧ください