EventLogWatcher.EventRecordWritten Event


Allows setting a delegate (event handler method) that gets called every time an event is published that matches the criteria specified in the event query for this object.

 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 Event EventRecordWritten As EventHandler(Of EventRecordWrittenEventArgs) 


For example code using this class, see How to: Subscribe to Events in an Event Log.

Applies to

See also