共用方式為


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) 

事件類型

範例

如需使用此類別的範例程式代碼,請參閱 如何:訂閱事件記錄檔中的事件

適用於

另請參閱