BuildProvider.GetResultFlags(CompilerResults) Method


Returns a value indicating actions required when a virtual path is built.

 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



The compilation results for the build provider's virtual path.



A BuildProviderResultFlags value indicating actions required after the virtual path is built within the ASP.NET build environment.


The GetResultFlags method is used by the ASP.NET build environment when using instances of the BuildProvider class to build files and load the compiled assemblies.

The base BuildProvider class method returns the Default field value, indicating that no special action is required when the virtual path is built.

When deriving from the BuildProvider class, you can implement the GetResultFlags method to return a different BuildProviderResultFlags value for your custom file type or virtual path. For example, if a rebuild of your virtual path requires the containing AppDomain object to be reloaded, you can return the ShutdownAppDomainOnChange enumeration value from your GetResultFlags method.

Applies to

See also