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
ビルド プロバイダーの仮想パスのコンパイル結果。
戻り値
ビルド環境内に保持される文字列。または、BuildProvider インスタンスが GetCustomString(CompilerResults) を実装しない場合は null
。
注釈
オブジェクトの メソッドはGetCompiledCustomString、入力仮想パスのビルド プロバイダーのインスタンスを作成し、 オブジェクトの GetCustomString メソッドをBuildProvider呼び出BuildManagerします。
基底BuildProviderクラスは、 が実装されていないことを示す メソッドに対GetCustomStringして GetCustomString を返null
します。
特定のビルド プロバイダーの実装では、 メソッドの代わりに をGetGeneratedType実装GetCustomStringできます。 オブジェクトは BuildProvider 通常、 を使用 GetGeneratedType して仮想パスの Type オブジェクトを返します。 ただし、 メソッドを GetCustomString 使用して、オブジェクトが BuildProvider 仮想パスから複数の型を生成できることを示すことができます。