IVsSolutionLogger.LogError 方法

定义

记录加载错误。

public:
 int LogError(System::UInt32 ErrorType, System::String ^ pszMessage, System::String ^ pszFile, int nLine, int nColumn, System::String ^ pszErrorCode, System::String ^ pszTaskListMessage, System::String ^ pszUniqueProjectName, System::String ^ pszHelpKeyword);
public:
 int LogError(unsigned int ErrorType, Platform::String ^ pszMessage, Platform::String ^ pszFile, int nLine, int nColumn, Platform::String ^ pszErrorCode, Platform::String ^ pszTaskListMessage, Platform::String ^ pszUniqueProjectName, Platform::String ^ pszHelpKeyword);
int LogError(unsigned int ErrorType, std::wstring const & pszMessage, std::wstring const & pszFile, int nLine, int nColumn, std::wstring const & pszErrorCode, std::wstring const & pszTaskListMessage, std::wstring const & pszUniqueProjectName, std::wstring const & pszHelpKeyword);
public int LogError (uint ErrorType, string pszMessage, string pszFile, int nLine, int nColumn, string pszErrorCode, string pszTaskListMessage, string pszUniqueProjectName, string pszHelpKeyword);
abstract member LogError : uint32 * string * string * int * int * string * string * string * string -> int
Public 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

参数

ErrorType
UInt32

) (的错误类型 __VsErrorType

pszMessage
String

错误消息。

pszFile
String

未能加载的项目文件的名称。

nLine
Int32

导致错误的项目文件的行号。

nColumn
Int32

导致错误的项目文件中的行的列号。

pszErrorCode
String

错误代码。

pszTaskListMessage
String

要添加到任务列表中的消息。

pszUniqueProjectName
String

唯一的项目名称。

pszHelpKeyword
String

帮助关键字。

返回

Int32

如果该方法成功,则它会返回 S_OK。 如果该方法失败,则会返回错误代码。

适用于