MockVsActivityLogXunitAdapter.LogEntryHrPath 方法

定义

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

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

参数

actType
UInt32

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

pszSource
String

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

pszDescription
String

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

hr
Int32

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

pszPath
String

[in]包含要包含在事件记录中的完整文件路径的字符串。

返回

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

实现

适用于