Namespace: Microsoft.VisualStudio.Shell.Interop
Assembly: Microsoft.VisualStudio.Shell.Interop.8.0 (in Microsoft.VisualStudio.Shell.Interop.8.0.dll)
Syntax
'宣言
Function LogMessage ( _
ErrorLevel As UInteger, _
bstrProject As String, _
bstrSource As String, _
bstrDescription As String _
) As Integer
'使用
Dim instance As IVsUpgradeLogger
Dim ErrorLevel As UInteger
Dim bstrProject As String
Dim bstrSource As String
Dim bstrDescription As String
Dim returnValue As Integer
returnValue = instance.LogMessage(ErrorLevel, _
bstrProject, bstrSource, bstrDescription)
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
)
function LogMessage(
ErrorLevel : uint,
bstrProject : String,
bstrSource : String,
bstrDescription : String
) : int
Parameters
ErrorLevel
Type: System.UInt32[in]
bstrProject
Type: System.String[in]
bstrSource
Type: System.String[in]
bstrDescription
Type: System.String[in ]
Return Value
Type: System.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();
Permissions
- 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.