BuildProvider.GetResultFlags(CompilerResults) メソッド

定義

仮想パスの構築時に必要なアクションを示す値を返します。

public:
 virtual System::Web::Compilation::BuildProviderResultFlags GetResultFlags(System::CodeDom::Compiler::CompilerResults ^ results);
public virtual System.Web.Compilation.BuildProviderResultFlags GetResultFlags(System.CodeDom.Compiler.CompilerResults results);
abstract member GetResultFlags : System.CodeDom.Compiler.CompilerResults -> System.Web.Compilation.BuildProviderResultFlags
override this.GetResultFlags : System.CodeDom.Compiler.CompilerResults -> System.Web.Compilation.BuildProviderResultFlags
Public Overridable Function GetResultFlags (results As CompilerResults) As BuildProviderResultFlags

パラメーター

results
CompilerResults

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

返品

ASP.NET ビルド環境内で仮想パスがビルドされた後に必要なアクションを示す BuildProviderResultFlags 値。

注釈

GetResultFlags メソッドは、BuildProvider クラスのインスタンスを使用してファイルをビルドし、コンパイル済みのアセンブリを読み込むときに、ASP.NET ビルド環境で使用されます。

基本 BuildProvider クラス メソッドは、 Default フィールド値を返します。これは、仮想パスの作成時に特別なアクションが必要ないことを示します。

BuildProvider クラスから派生する場合は、GetResultFlags メソッドを実装して、カスタム ファイルの種類または仮想パスに対して異なるBuildProviderResultFlags値を返すことができます。 たとえば、仮想パスの再構築で、含まれているAppDomain オブジェクトを再読み込みする必要がある場合は、ShutdownAppDomainOnChange メソッドからGetResultFlags列挙値を返すことができます。

適用対象

こちらもご覧ください