IVsLanguageServiceBuildErrorReporter2.ReportError2(String, String, VSTASKPRIORITY, Int32, Int32, Int32, Int32, String) Método

Definição

Relata um erro de compilação.

public:
 void ReportError2(System::String ^ bstrErrorMessage, System::String ^ bstrErrorId, Microsoft::VisualStudio::Shell::Interop::VSTASKPRIORITY nPriority, int iStartLine, int iStartColumn, int iEndLine, int iEndColumn, System::String ^ bstrFileName);
public:
 void ReportError2(Platform::String ^ bstrErrorMessage, Platform::String ^ bstrErrorId, Microsoft::VisualStudio::Shell::Interop::VSTASKPRIORITY nPriority, int iStartLine, int iStartColumn, int iEndLine, int iEndColumn, Platform::String ^ bstrFileName);
void ReportError2(std::wstring const & bstrErrorMessage, std::wstring const & bstrErrorId, Microsoft::VisualStudio::Shell::Interop::VSTASKPRIORITY nPriority, int iStartLine, int iStartColumn, int iEndLine, int iEndColumn, std::wstring const & bstrFileName);
public void ReportError2 (string bstrErrorMessage, string bstrErrorId, Microsoft.VisualStudio.Shell.Interop.VSTASKPRIORITY nPriority, int iStartLine, int iStartColumn, int iEndLine, int iEndColumn, string bstrFileName);
abstract member ReportError2 : string * string * Microsoft.VisualStudio.Shell.Interop.VSTASKPRIORITY * int * int * int * int * string -> unit
Public Sub ReportError2 (bstrErrorMessage As String, bstrErrorId As String, nPriority As VSTASKPRIORITY, iStartLine As Integer, iStartColumn As Integer, iEndLine As Integer, iEndColumn As Integer, bstrFileName As String)

Parâmetros

bstrErrorMessage
String

A mensagem de erro.

bstrErrorId
String

A ID do erro.

nPriority
VSTASKPRIORITY

A prioridade de erro.

iStartLine
Int32

A linha inicial do arquivo de código-fonte.

iStartColumn
Int32

A coluna inicial do arquivo de código-fonte.

iEndLine
Int32

A linha final do arquivo de código-fonte.

iEndColumn
Int32

A coluna final do arquivo de código-fonte.

bstrFileName
String

O nome do arquivo de código-fonte.

Comentários

Esse método funciona da mesma forma que o ReportError , mas permite que você forneça o intervalo de erros completo (ou seja, posições inicial e final, em vez de apenas iniciar as posições).

Aplica-se a