BuildProvider.ProcessCompileErrors(CompilerResults) 方法

定義

在衍生類別中覆寫時,可讓您檢閱編譯器錯誤訊息,以便於修改它們提供更多資訊。

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)

參數

results
CompilerResults

編譯器結果。

備註

您通常會覆寫這個方法,以便在顯示編譯器錯誤之前先修改編譯器錯誤,讓使用者更容易使用錯誤文字。 這適用于您知道特定錯誤內容的情況,並可為使用者提供有關如何修正錯誤的資訊。 原始編譯器錯誤訊息通常專屬於特定語言建構,而且可能不會對使用者造成真正的原因或解決方案。

您可以使用傳遞至 方法的物件來存取錯誤 CompilerResults

適用於