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: StringThe error message.
bstrErrorId
Type: StringThe error ID.
nPriority
Type: Microsoft.VisualStudio.Shell.Interop.VSTASKPRIORITYThe error priority.
iStartLine
Type: Int32The starting line of the source code file.
iStartColumn
Type: Int32The starting column of the source code file.
iEndLine
Type: Int32The ending line of the source code file.
iEndColumn
Type: Int32The ending column of the source code file.
bstrFileName
Type: StringThe 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
- 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.