Compartir a través de


IVsActivityLog.LogEntryGuidHrPath Method

Makes a log entry specifying entry type, package name, the event text, a GUID to store in the event record, an HRESULT to store in the event record and a full file path 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

'Declaración
Function LogEntryGuidHrPath ( _
    actType As UInteger, _
    pszSource As String, _
    pszDescription As String, _
    guid As Guid, _
    hr As Integer, _
    pszPath As String _
) As Integer
'Uso
Dim instance As IVsActivityLog
Dim actType As UInteger
Dim pszSource As String
Dim pszDescription As String
Dim guid As Guid
Dim hr As Integer
Dim pszPath As String
Dim returnValue As Integer

returnValue = instance.LogEntryGuidHrPath(actType, _
    pszSource, pszDescription, guid, _
    hr, pszPath)
int LogEntryGuidHrPath(
    uint actType,
    string pszSource,
    string pszDescription,
    Guid guid,
    int hr,
    string pszPath
)
int LogEntryGuidHrPath(
    [InAttribute] unsigned int actType, 
    [InAttribute] String^ pszSource, 
    [InAttribute] String^ pszDescription, 
    [InAttribute] Guid guid, 
    [InAttribute] int hr, 
    [InAttribute] String^ pszPath
)
abstract LogEntryGuidHrPath : 
        actType:uint32 * 
        pszSource:string * 
        pszDescription:string * 
        guid:Guid * 
        hr:int * 
        pszPath:string -> int 
function LogEntryGuidHrPath(
    actType : uint, 
    pszSource : String, 
    pszDescription : String, 
    guid : Guid, 
    hr : int, 
    pszPath : String
) : 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.
  • guid
    Type: System.Guid
    [in] A GUID to include in the event record.
  • hr
    Type: System.Int32
    [in] An HRESULT to include in the event record.
  • pszPath
    Type: System.String
    [in] A string containing a full file path 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::LogEntryGuidHrPath(

   [in] ACTIVITYLOG_ENTRYTYPE actType,

   [in] LPCOLESTR pszSource,

   [in] LPCOLESTR pszDescription,

   [in] GUID guid,

   [in] HRESULT hr,

   [in] LPCOLESTR pszPath

);

.NET Framework Security

See Also

Reference

IVsActivityLog Interface

IVsActivityLog Members

Microsoft.VisualStudio.Shell.Interop Namespace