IVsLanguageServiceBuildErrorReporter2.ReportError2 Method

Reports a build error.

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

Syntax

'Declaration
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 _
)
void ReportError2(
    string bstrErrorMessage,
    string bstrErrorId,
    VSTASKPRIORITY nPriority,
    int iStartLine,
    int iStartColumn,
    int iEndLine,
    int iEndColumn,
    string bstrFileName
)
void ReportError2(
    [InAttribute] String^ bstrErrorMessage, 
    [InAttribute] String^ bstrErrorId, 
    [InAttribute] VSTASKPRIORITY nPriority, 
    [InAttribute] int iStartLine, 
    [InAttribute] int iStartColumn, 
    [InAttribute] int iEndLine, 
    [InAttribute] int iEndColumn, 
    [InAttribute] String^ bstrFileName
)
abstract ReportError2 : 
        bstrErrorMessage:string * 
        bstrErrorId:string * 
        nPriority:VSTASKPRIORITY * 
        iStartLine:int * 
        iStartColumn:int * 
        iEndLine:int * 
        iEndColumn:int * 
        bstrFileName:string -> unit
function ReportError2(
    bstrErrorMessage : String, 
    bstrErrorId : String, 
    nPriority : VSTASKPRIORITY, 
    iStartLine : int, 
    iStartColumn : int, 
    iEndLine : int, 
    iEndColumn : int, 
    bstrFileName : String
)

Parameters

  • bstrErrorMessage
    Type: String

    The error message.

  • bstrErrorId
    Type: String

    The error ID.

  • iStartLine
    Type: Int32

    The starting line of the source code file.

  • iStartColumn
    Type: Int32

    The starting column of the source code file.

  • iEndLine
    Type: Int32

    The ending line of the source code file.

  • iEndColumn
    Type: Int32

    The ending column of the source code file.

  • bstrFileName
    Type: String

    The source code file name.

Remarks

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).

.NET Framework Security

See Also

Reference

IVsLanguageServiceBuildErrorReporter2 Interface

Microsoft.VisualStudio.Shell.Interop Namespace