共用方式為


MockVsActivityLogXunitAdapter.LogEntry(UInt32, String, String) 方法

定義

讓記錄專案指定記錄類型、封裝名稱和事件文字。

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。 如果方法失敗,則會傳回錯誤碼。

實作

適用於