MockVsActivityLog.LogEntryHr(UInt32, String, String, Int32) 方法

定义

创建一个日志条目,指定要在事件记录中存储的条目类型、包名称、事件文本和 HRESULT。

public int LogEntryHr (uint actType, string pszSource, string pszDescription, int hr);
abstract member LogEntryHr : uint32 * string * string * int -> int
override this.LogEntryHr : uint32 * string * string * int -> int
Public Function LogEntryHr (actType As UInteger, pszSource As String, pszDescription As String, hr As Integer) As Integer

参数

actType
UInt32

[in]日志条目的类型,枚举中的 __ACTIVITYLOG_ENTRYTYPE 值。

pszSource
String

[in]指向字符串的指针,该字符串包含进行调用的包或组件的名称。

pszDescription
String

[in]指向描述事件的字符串的指针。

hr
Int32

[in]要包含在事件记录中的 HRESULT。

返回

如果该方法成功,则它会返回 S_OK。 如果该方法失败,则会返回错误代码。

实现

适用于