共用方式為


Clerk.WriteLogRecord(Object) 方法

定義

將非結構化記錄檔資料錄寫入記錄檔。

public:
 void WriteLogRecord(System::Object ^ record);
public void WriteLogRecord (object record);
member this.WriteLogRecord : obj -> unit
Public Sub WriteLogRecord (record As Object)

參數

record
Object

要寫入記錄檔的記錄檔資料錄。

範例

下列程式代碼範例示範這個建構函式的使用方式。

// Create a new clerk using the AccountCompensator class.
Clerk^ clerk = gcnew Clerk(AccountCompensator::typeid,
    "An account transaction compensator", CompensatorOptions::AllPhases);
// Create a new clerk using the AccountCompensator class.
Clerk clerk = new Clerk(typeof(AccountCompensator),
  "An account transaction compensator", CompensatorOptions.AllPhases);
' Create a new clerk using the AccountCompensator class.
Dim clerk As New Clerk(GetType(AccountCompensator), "An account transaction compensator", CompensatorOptions.AllPhases)

適用於