System.Diagnostics.Tracing Namespace
The System.Diagnostics.Tracing namespace provides types and members that enable you to create strongly typed events to be captured by event tracing for Windows (ETW).
| Class | Description | |
|---|---|---|
![]() | EventAttribute | Specifies additional event schema information for an event. |
![]() | EventCommandEventArgs | Provides the arguments for the OnEventCommand callback. |
![]() | EventDataAttribute | Specifies a type to be passed to the Write<T> method. |
![]() | EventFieldAttribute | The EventFieldAttribute is placed on fields of user-defined types that are passed as EventSource payloads. |
![]() | EventIgnoreAttribute | Specifies a property should be ignored when writing an event type with the Write<T> method. |
![]() | EventListener | Provides methods for enabling and disabling events from event sources. |
![]() | EventSource | Provides the ability to create events for event tracing for Windows (ETW). |
![]() | EventSourceAttribute | Allows the event tracing for Windows (ETW) name to be defined independently of the name of the event source class. |
![]() | EventSourceCreatedEventArgs | Provides data for the EventListener::EventSourceCreated event. |
![]() | EventSourceException | The exception that is thrown when an error occurs during event tracing for Windows (ETW). |
![]() | EventWrittenEventArgs | Provides data for the EventListener::OnEventWritten callback. |
![]() | NonEventAttribute | Identifies a method that is not generating an event. |
| Structure | Description | |
|---|---|---|
![]() | EventSource::EventData | Provides the event data for creating fast WriteEvent overloads by using the WriteEventCore method. |
![]() | EventSourceOptions | Specifies overrides of default event settings such as the log level, keywords and operation code when the Write<T> method is called. |
| Enumeration | Description | |
|---|---|---|
![]() | EventActivityOptions | Specifies the tracking of activity start and stop events. |
![]() | EventChannel | Specifies the event log channel for the event. |
![]() | EventCommand | Describes the command (EventCommandEventArgs::Command property) that is passed to the OnEventCommand callback. |
![]() | EventFieldFormat | Specifies how to format the value of a user-defined type and can be used to override the default formatting for a field. |
![]() | EventFieldTags | Specifies the user-defined tag that is placed on fields of user-defined types that are passed as EventSource payloads through the EventFieldAttribute. |
![]() | EventKeywords | Defines the standard keywords that apply to events. |
![]() | EventLevel | Identifies the level of an event. |
![]() | EventManifestOptions | Specifies how the ETW manifest for the event source is generated. |
![]() | EventOpcode | Defines the standard operation codes that the event source attaches to events. |
![]() | EventSourceSettings | Specifies configuration options for an event source. |
![]() | EventTags | Specifies the tracking of activity start and stop events. You should only use the lower 24 bits. For more information, see EventSourceOptions and Write. |
![]() | EventTask | Defines the tasks that apply to events. |
A strongly typed event is identified by name and contains payload descriptions. You can discover the list of events that a program can produce by using reflection.



