Export (0) Print
Expand All

BuildProvider.GetResultFlags Method

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

Namespace:  System.Web.Compilation
Assembly:  System.Web (in System.Web.dll)

public virtual BuildProviderResultFlags GetResultFlags(
	CompilerResults results
)

Parameters

results
Type: System.CodeDom.Compiler.CompilerResults

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

Return Value

Type: System.Web.Compilation.BuildProviderResultFlags
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.

.NET Framework

Supported in: 4.5, 4, 3.5, 3.0, 2.0

Windows 8.1, Windows Server 2012 R2, Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

Show:
© 2014 Microsoft