Export (0) Print
Expand All

BuildProvider.ProcessCompileErrors Method

.NET Framework 4.6 and 4.5

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
)

Parameters

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

Supported in: 4.6, 4.5, 4
Show:
© 2015 Microsoft