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
- bstrErrorMessage
Type: System.String
- bstrErrorId
Type: System.String
- nPriority
Type: Microsoft.VisualStudio.Shell.Interop.VSTASKPRIORITY
- iLine
Type: System.Int32
- iColumn
Type: System.Int32
- bstrFileName
Type: System.String
Return Value
Type: System.Int32
.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.
See Also
Reference
IVsLanguageServiceBuildErrorReporter Interface