共用方式為


IVsActivityLog.LogEntry(UInt32, String, String) Method

Definition

Makes a log entry specifying the log type, the package name, and the event text.

public:
 int LogEntry(System::UInt32 actType, System::String ^ pszSource, System::String ^ pszDescription);
public:
 int LogEntry(unsigned int actType, Platform::String ^ pszSource, Platform::String ^ pszDescription);
int LogEntry(unsigned int actType, std::wstring const & pszSource, std::wstring const & pszDescription);
public int LogEntry (uint actType, string pszSource, string pszDescription);
abstract member LogEntry : uint32 * string * string -> int
Public Function LogEntry (actType As UInteger, pszSource As String, pszDescription As String) 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.

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