IVsSolutionLogger.LogError Method

Definition

Logs a load error.

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

Parameters

ErrorType
UInt32

The error type (from __VsErrorType).

pszMessage
String

The error message.

pszFile
String

The name of the project file that failed to load.

nLine
Int32

The line number of the project file that caused the error.

nColumn
Int32

The column number of the line in the project file that caused the error.

pszErrorCode
String

The error code.

pszTaskListMessage
String

The message to add to the task list.

pszUniqueProjectName
String

The unique project name.

pszHelpKeyword
String

The help keyword.

Returns

If the method succeeds, it returns S_OK. If it fails, it returns an error code.

Applies to