System.Web.Compilation.BuildProvider.GetResultFlags Method

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

Syntax

public virtual BuildProviderResultFlags GetResultFlags (System.CodeDom.Compiler.CompilerResults results)

Parameters

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

Returns

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

Remarks

The BuildProvider.GetResultFlags(System.CodeDom.Compiler.CompilerResults) method is used by the ASP.NET build environment when using instances of the System.Web.Compilation.BuildProvider class to build files and load the compiled assemblies.

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

When deriving from the System.Web.Compilation.BuildProvider class, you can implement the BuildProvider.GetResultFlags(System.CodeDom.Compiler.CompilerResults) method to return a different System.Web.Compilation.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 BuildProviderResultFlags.ShutdownAppDomainOnChange enumeration value from your BuildProvider.GetResultFlags(System.CodeDom.Compiler.CompilerResults) method.

Requirements

Namespace: System.Web.Compilation
Assembly: System.Web (in System.Web.dll)
Assembly Versions: 2.0.0.0
Since: .NET 2.0