IVsLanguageServiceBuildErrorReporter2::ReportError2 Method (String^, String^, VSTASKPRIORITY, Int32, Int32, Int32, Int32, String^)

 

Reports a build error.

Namespace:   Microsoft.VisualStudio.Shell.Interop
Assembly:  Microsoft.VisualStudio.Shell.Interop.11.0 (in Microsoft.VisualStudio.Shell.Interop.11.0.dll)

void ReportError2(
	String^ bstrErrorMessage,
	String^ bstrErrorId,
	VSTASKPRIORITY nPriority,
	int iStartLine,
	int iStartColumn,
	int iEndLine,
	int iEndColumn,
	String^ bstrFileName
)

Parameters

bstrErrorMessage
Type: System::String^

The error message.

bstrErrorId
Type: System::String^

The error ID.

nPriority
Type: Microsoft.VisualStudio.Shell.Interop::VSTASKPRIORITY

The error priority.

iStartLine
Type: System::Int32

The starting line of the source code file.

iStartColumn
Type: System::Int32

The starting column of the source code file.

iEndLine
Type: System::Int32

The ending line of the source code file.

iEndColumn
Type: System::Int32

The ending column of the source code file.

bstrFileName
Type: System::String^

The source code file name.

This method works the same as ReportError, but allows you to provide the complete error span (that is, starting and ending positions, rather than just starting positions).

Return to top
Show: