MockVsActivityLogXunitAdapter.LogEntryPath 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
创建日志条目,指定要在事件记录中存储的条目类型、包名称、事件文本和完整文件路径。
public int LogEntryPath(uint actType, string pszSource, string pszDescription, string pszPath);
abstract member LogEntryPath : uint32 * string * string * string -> int
override this.LogEntryPath : uint32 * string * string * string -> int
Public Function LogEntryPath (actType As UInteger, pszSource As String, pszDescription As String, pszPath As String) As Integer
参数
- actType
- UInt32
[in]日志条目的类型,枚举中的 __ACTIVITYLOG_ENTRYTYPE 值。
- pszSource
- String
[in]指向包含进行调用的包或组件名称的字符串的指针。
- pszDescription
- String
[in]指向描述事件的字符串的指针。
- pszPath
- String
[in]包含要包含在事件记录中的完整文件路径的字符串。
返回
如果该方法成功,则它会返回 S_OK。 如果该方法失败,则会返回错误代码。