EventLogWatcher.EventRecordWritten 事件

定义

允许设置一个委托(事件处理程序方法),每次发布与在此对象的事件查询中指定的条件相匹配的事件时都会调用该委托。

public:
 event EventHandler<System::Diagnostics::Eventing::Reader::EventRecordWrittenEventArgs ^> ^ EventRecordWritten;
public event EventHandler<System.Diagnostics.Eventing.Reader.EventRecordWrittenEventArgs> EventRecordWritten;
member this.EventRecordWritten : EventHandler<System.Diagnostics.Eventing.Reader.EventRecordWrittenEventArgs> 
Public Custom Event EventRecordWritten As EventHandler(Of EventRecordWrittenEventArgs) 
Public Event EventRecordWritten As EventHandler(Of EventRecordWrittenEventArgs) 

事件类型

示例

有关使用此类的示例代码,请参阅 如何:订阅事件日志中的事件

适用于

另请参阅