BuildProvider.ProcessCompileErrors(CompilerResults) Method

Definition

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

public:
 virtual void ProcessCompileErrors(System::CodeDom::Compiler::CompilerResults ^ results);
public virtual void ProcessCompileErrors (System.CodeDom.Compiler.CompilerResults results);
abstract member ProcessCompileErrors : System.CodeDom.Compiler.CompilerResults -> unit
override this.ProcessCompileErrors : System.CodeDom.Compiler.CompilerResults -> unit
Public Overridable Sub ProcessCompileErrors (results As CompilerResults)

Parameters

results
CompilerResults

Compiler results.

Remarks

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.

Applies to