Udostępnij za pośrednictwem


IVsActivityLog.LogEntryHr(UInt32, String, String, Int32) Method

Definition

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

public:
 int LogEntryHr(System::UInt32 actType, System::String ^ pszSource, System::String ^ pszDescription, int hr);
public:
 int LogEntryHr(unsigned int actType, Platform::String ^ pszSource, Platform::String ^ pszDescription, int hr);
int LogEntryHr(unsigned int actType, std::wstring const & pszSource, std::wstring const & pszDescription, int hr);
public int LogEntryHr (uint actType, string pszSource, string pszDescription, int hr);
abstract member LogEntryHr : uint32 * string * string * int -> int
Public Function LogEntryHr (actType As UInteger, pszSource As String, pszDescription As String, hr As Integer) As Integer

Parameters

actType
UInt32

[in] Type of log entry, a value from the __ACTIVITYLOG_ENTRYTYPE enumeration.

pszSource
String

[in] Pointer to a string containing the name of the package or component making the call.

pszDescription
String

[in] Pointer to a string describing the event.

hr
Int32

[in] An HRESULT to include in the event record.

Returns

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

Remarks

This method is safe to access from any thread.

Applies to