Bagikan melalui


Clerk.WriteLogRecord(Object) Metode

Definisi

Menulis catatan log yang tidak terstruktur ke log.

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

Parameter

record
Object

Catatan log untuk menulis ke log.

Contoh

Contoh kode berikut menunjukkan penggunaan konstruktor ini.

// 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)

Berlaku untuk