BuildProvider.ProcessCompileErrors Method (CompilerResults)

.NET Framework (current version)

The .NET API Reference documentation has a new home. Visit the .NET API Browser on to see the new experience.

When overridden in a derived class, enables you to review compiler error messages so that you can modify them to provide more information.

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

public virtual void ProcessCompileErrors(
	CompilerResults results


Type: System.CodeDom.Compiler.CompilerResults

Compiler results.

You typically override this method so that you can modify compiler errors before they are displayed in order to make the error text more helpful to the user. This is useful in scenarios where you know the context of certain errors and can provide information to the user about how to fix them. The original compiler error message is usually specific to a particular language construct and might not make the real cause or solution obvious to the user.

You can access the errors by using the CompilerResults object that is passed to the method.

.NET Framework
Available since 4.0
Return to top