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.
System.Diagnostics.Eventing Namespace
.NET Framework (current version)
Contains the classes used to instrument your application. The instrumentation, when enabled, logs the event data to the Event Tracing for Windows (ETW) tracing subsystem. For a complete description of ETW, see Event Tracing for Windows.
| Class | Description | |
|---|---|---|
![]() | EventProvider | Use this class to write events. |
![]() | EventProviderTraceListener | A listener for System.Diagnostics::TraceSource that writes events to the ETW subsytem. |
| Structure | Description | |
|---|---|---|
![]() | EventDescriptor | Contains the metadata that defines an event. |
| Enumeration | Description | |
|---|---|---|
![]() | EventProvider::WriteEventErrorCode | Defines the possible states of the last write operation. |
The classes in this namespace work only on Windows Vista and later.
Show:


