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.

Namespace:   System.Diagnostics.Eventing.Reader
Assembly:  System.Core (in System.Core.dll)

Public Event EventRecordWritten As EventHandler(Of EventRecordWrittenEventArgs)

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

.NET Framework
Available since 3.5

EventLogWatcher Class
System.Diagnostics.Eventing.Reader Namespace
Technology Summary for Reading and Managing Event Logs
Event Log Scenarios

Return to top
Show: