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)

适用于