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