共用方式為


IVsLanguageServiceBuildErrorReporter.ReportError Method

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

Syntax

'宣告
Function ReportError ( _
    bstrErrorMessage As String, _
    bstrErrorId As String, _
    nPriority As VSTASKPRIORITY, _
    iLine As Integer, _
    iColumn As Integer, _
    bstrFileName As String _
) As Integer
'用途
Dim instance As IVsLanguageServiceBuildErrorReporter
Dim bstrErrorMessage As String
Dim bstrErrorId As String
Dim nPriority As VSTASKPRIORITY
Dim iLine As Integer
Dim iColumn As Integer
Dim bstrFileName As String
Dim returnValue As Integer

returnValue = instance.ReportError(bstrErrorMessage, _
    bstrErrorId, nPriority, iLine, iColumn, _
    bstrFileName)
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

Return Value

Type: System.Int32

.NET Framework Security

See Also

Reference

IVsLanguageServiceBuildErrorReporter Interface

IVsLanguageServiceBuildErrorReporter Members

Microsoft.VisualStudio.Shell.Interop Namespace