Share via


IVsLanguageServiceBuildErrorReporter.ReportError Method

Definition

Reports a build error.

public:
 int ReportError(System::String ^ bstrErrorMessage, System::String ^ bstrErrorId, Microsoft::VisualStudio::Shell::Interop::VSTASKPRIORITY nPriority, int iLine, int iColumn, System::String ^ bstrFileName);
public:
 int ReportError(Platform::String ^ bstrErrorMessage, Platform::String ^ bstrErrorId, Microsoft::VisualStudio::Shell::Interop::VSTASKPRIORITY nPriority, int iLine, int iColumn, Platform::String ^ bstrFileName);
int ReportError(std::wstring const & bstrErrorMessage, std::wstring const & bstrErrorId, Microsoft::VisualStudio::Shell::Interop::VSTASKPRIORITY nPriority, int iLine, int iColumn, std::wstring const & bstrFileName);
public int ReportError (string bstrErrorMessage, string bstrErrorId, Microsoft.VisualStudio.Shell.Interop.VSTASKPRIORITY nPriority, int iLine, int iColumn, string bstrFileName);
abstract member ReportError : string * string * Microsoft.VisualStudio.Shell.Interop.VSTASKPRIORITY * int * int * string -> int
Public Function ReportError (bstrErrorMessage As String, bstrErrorId As String, nPriority As VSTASKPRIORITY, iLine As Integer, iColumn As Integer, bstrFileName As String) As Integer

Parameters

bstrErrorMessage
String

The error message.

bstrErrorId
String

The error ID.

nPriority
VSTASKPRIORITY

The error priority.

iLine
Int32

The line of the source code file.

iColumn
Int32

The column of the source code file.

bstrFileName
String

The source code file name.

Returns

If the method succeeds, it returns S_OK. If it fails, it returns an error code.

Applies to