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 사용하여 오류에 액세스할 수 있습니다.

적용 대상