BuildProvider.GetCustomString(CompilerResults) メソッド
定義
重要
一部の情報は、リリース前に大きく変更される可能性があるプレリリースされた製品に関するものです。 Microsoft は、ここに記載されている情報について、明示または黙示を問わず、一切保証しません。
コンパイル済みアセンブリに永続化する文字列を生成します。
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
ビルド プロバイダーの仮想パスのコンパイル結果。
返品
ビルド環境に永続化する文字列。または、null インスタンスがBuildProviderを実装していない場合にGetCustomString(CompilerResults)。
注釈
GetCompiledCustomString オブジェクトのBuildManager メソッドは、入力仮想パスのビルド プロバイダーのインスタンスを作成し、GetCustomString オブジェクトに対してBuildProvider メソッドを呼び出します。
基底BuildProvider クラスは、null メソッドのGetCustomStringを返し、GetCustomStringが実装されていないことを示します。
特定のビルド プロバイダーの実装では、GetCustomString メソッドの代わりにGetGeneratedTypeを実装できます。 BuildProvider オブジェクトは、通常、仮想パスのGetGeneratedType オブジェクトを返すためにTypeを使用します。 ただし、 GetCustomString メソッドを使用して、 BuildProvider オブジェクトが仮想パスから複数の型を生成できることを示すことができます。