IVsLanguageServiceBuildErrorReporter.ReportError Method

Reports a build error.

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

Syntax

'Declaration
Function ReportError ( _
    bstrErrorMessage As String, _
    bstrErrorId As String, _
    nPriority As VSTASKPRIORITY, _
    iLine As Integer, _
    iColumn As Integer, _
    bstrFileName As String _
) As Integer
int ReportError(
    string bstrErrorMessage,
    string bstrErrorId,
    VSTASKPRIORITY nPriority,
    int iLine,
    int iColumn,
    string bstrFileName
)
int ReportError(
    [InAttribute] String^ bstrErrorMessage, 
    [InAttribute] String^ bstrErrorId, 
    [InAttribute] VSTASKPRIORITY nPriority, 
    [InAttribute] int iLine, 
    [InAttribute] int iColumn, 
    [InAttribute] String^ bstrFileName
)
abstract ReportError : 
        bstrErrorMessage:string * 
        bstrErrorId:string * 
        nPriority:VSTASKPRIORITY * 
        iLine:int * 
        iColumn:int * 
        bstrFileName:string -> int
function ReportError(
    bstrErrorMessage : String, 
    bstrErrorId : String, 
    nPriority : VSTASKPRIORITY, 
    iLine : int, 
    iColumn : int, 
    bstrFileName : String
) : int

Parameters

  • bstrErrorMessage
    Type: String

    The error message.

  • bstrErrorId
    Type: String

    The error ID.

  • iLine
    Type: Int32

    The line of the source code file.

  • iColumn
    Type: Int32

    The column of the source code file.

  • bstrFileName
    Type: String

    The source code file name.

Return Value

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

.NET Framework Security

See Also

Reference

IVsLanguageServiceBuildErrorReporter Interface

Microsoft.VisualStudio.Shell.Interop Namespace