Partager via


IVsActivityLog.LogEntryHr Method

Makes a log entry specifying entry type, package name, event text, and an HRESULT to store in the event record.

Namespace:  Microsoft.VisualStudio.Shell.Interop
Assembly:  Microsoft.VisualStudio.Shell.Interop.8.0 (in Microsoft.VisualStudio.Shell.Interop.8.0.dll)

Syntax

'Déclaration
Function LogEntryHr ( _
    actType As UInteger, _
    pszSource As String, _
    pszDescription As String, _
    hr As Integer _
) As Integer
'Utilisation
Dim instance As IVsActivityLog
Dim actType As UInteger
Dim pszSource As String
Dim pszDescription As String
Dim hr As Integer
Dim returnValue As Integer

returnValue = instance.LogEntryHr(actType, _
    pszSource, pszDescription, hr)
int LogEntryHr(
    uint actType,
    string pszSource,
    string pszDescription,
    int hr
)
int LogEntryHr(
    [InAttribute] unsigned int actType, 
    [InAttribute] String^ pszSource, 
    [InAttribute] String^ pszDescription, 
    [InAttribute] int hr
)
abstract LogEntryHr : 
        actType:uint32 * 
        pszSource:string * 
        pszDescription:string * 
        hr:int -> int 
function LogEntryHr(
    actType : uint, 
    pszSource : String, 
    pszDescription : String, 
    hr : int
) : int

Parameters

  • pszSource
    Type: System.String
    [in] Pointer to a string containing the name of the package or component making the call.
  • pszDescription
    Type: System.String
    [in] Pointer to a string describing the event.
  • hr
    Type: System.Int32
    [in] An HRESULT to include in the event record.

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 IVsActivityLog::LogEntryHr(
   [in] ACTIVITYLOG_ENTRYTYPE actType, 
   in] LPCOLESTR pszSource, 
   [in] LPCOLESTR pszDescription, 
   [in] HRESULT hr
);

.NET Framework Security

See Also

Reference

IVsActivityLog Interface

IVsActivityLog Members

Microsoft.VisualStudio.Shell.Interop Namespace