Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

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 EventHandler<EventRecordWrittenEventArgs^>^ EventRecordWritten {
	void add(EventHandler<EventRecordWrittenEventArgs^>^ value);
	void remove(EventHandler<EventRecordWrittenEventArgs^>^ value);
}

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:
© 2017 Microsoft