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)