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: StringThe error message.
bstrErrorId
Type: StringThe error ID.
nPriority
Type: Microsoft.VisualStudio.Shell.Interop.VSTASKPRIORITYThe error priority.
iLine
Type: Int32The line of the source code file.
iColumn
Type: Int32The column of the source code file.
bstrFileName
Type: StringThe 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
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.