Clerk.WriteLogRecord(Object) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
將非結構化記錄檔資料錄寫入記錄檔。
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)