Condividi tramite


IVsUpgradeLogger.LogMessage(UInt32, String, String, String) Method

Definition

Logs a message in the project upgrade log file.

public:
 int LogMessage(System::UInt32 ErrorLevel, System::String ^ bstrProject, System::String ^ bstrSource, System::String ^ bstrDescription);
public:
 int LogMessage(unsigned int ErrorLevel, Platform::String ^ bstrProject, Platform::String ^ bstrSource, Platform::String ^ bstrDescription);
int LogMessage(unsigned int ErrorLevel, std::wstring const & bstrProject, std::wstring const & bstrSource, std::wstring const & bstrDescription);
public int LogMessage (uint ErrorLevel, string bstrProject, string bstrSource, string bstrDescription);
abstract member LogMessage : uint32 * string * string * string -> int
Public Function LogMessage (ErrorLevel As UInteger, bstrProject As String, bstrSource As String, bstrDescription As String) As Integer

Parameters

ErrorLevel
UInt32

[in] A __VSUL_ERRORLEVEL enumeration that indicates the error level.

bstrProject
String

[in] The name of the project being upgraded.

bstrSource
String

[in] The source of the error.

bstrDescription
String

[in ] The message to be entered into the log file.

Returns

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

Remarks

COM Signature

From vsshell80.idl:

HRESULT IVsUpgradeLogger::LogMessage();  

Applies to