IVsUpgradeLogger.LogMessage Method
Logs a message in the project upgrade log file.
Namespace: Microsoft.VisualStudio.Shell.Interop
Assembly: Microsoft.VisualStudio.Shell.Interop.8.0 (in Microsoft.VisualStudio.Shell.Interop.8.0.dll)
Syntax
'Declaration
Function LogMessage ( _
ErrorLevel As UInteger, _
bstrProject As String, _
bstrSource As String, _
bstrDescription As String _
) As Integer
int LogMessage(
uint ErrorLevel,
string bstrProject,
string bstrSource,
string bstrDescription
)
int LogMessage(
[InAttribute] unsigned int ErrorLevel,
[InAttribute] String^ bstrProject,
[InAttribute] String^ bstrSource,
[InAttribute] String^ bstrDescription
)
abstract LogMessage :
ErrorLevel:uint32 *
bstrProject:string *
bstrSource:string *
bstrDescription:string -> int
function LogMessage(
ErrorLevel : uint,
bstrProject : String,
bstrSource : String,
bstrDescription : String
) : int
Parameters
ErrorLevel
Type: UInt32[in] A __VSUL_ERRORLEVEL enumeration that indicates the error level.
bstrProject
Type: String[in] The name of the project being upgraded.
bstrSource
Type: String[in] The source of the error.
bstrDescription
Type: String[in ] The message to be entered into the log file.
Return Value
Type: Int32
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();
.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.