Namespace: Microsoft.VisualStudio.Shell.Interop
Assembly: Microsoft.VisualStudio.Shell.Interop.10.0 (in Microsoft.VisualStudio.Shell.Interop.10.0.dll)
Syntax
'宣告
Function LogError ( _
ErrorType As UInteger, _
pszMessage As String, _
pszFile As String, _
nLine As Integer, _
nColumn As Integer, _
pszErrorCode As String, _
pszTaskListMessage As String, _
pszUniqueProjectName As String, _
pszHelpKeyword As String _
) As Integer
'用途
Dim instance As IVsSolutionLogger
Dim ErrorType As UInteger
Dim pszMessage As String
Dim pszFile As String
Dim nLine As Integer
Dim nColumn As Integer
Dim pszErrorCode As String
Dim pszTaskListMessage As String
Dim pszUniqueProjectName As String
Dim pszHelpKeyword As String
Dim returnValue As Integer
returnValue = instance.LogError(ErrorType, _
pszMessage, pszFile, nLine, nColumn, _
pszErrorCode, pszTaskListMessage, _
pszUniqueProjectName, pszHelpKeyword)
int LogError(
uint ErrorType,
string pszMessage,
string pszFile,
int nLine,
int nColumn,
string pszErrorCode,
string pszTaskListMessage,
string pszUniqueProjectName,
string pszHelpKeyword
)
int LogError(
unsigned int ErrorType,
String^ pszMessage,
String^ pszFile,
int nLine,
int nColumn,
String^ pszErrorCode,
String^ pszTaskListMessage,
String^ pszUniqueProjectName,
String^ pszHelpKeyword
)
abstract LogError :
ErrorType:uint32 *
pszMessage:string *
pszFile:string *
nLine:int *
nColumn:int *
pszErrorCode:string *
pszTaskListMessage:string *
pszUniqueProjectName:string *
pszHelpKeyword:string -> int
function LogError(
ErrorType : uint,
pszMessage : String,
pszFile : String,
nLine : int,
nColumn : int,
pszErrorCode : String,
pszTaskListMessage : String,
pszUniqueProjectName : String,
pszHelpKeyword : String
) : int
Parameters
- ErrorType
Type: System.UInt32
- pszMessage
Type: System.String
- pszFile
Type: System.String
- nLine
Type: System.Int32
- nColumn
Type: System.Int32
- pszErrorCode
Type: System.String
- pszTaskListMessage
Type: System.String
- pszUniqueProjectName
Type: System.String
- pszHelpKeyword
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.