EventSourceSettings Enum

Definition

Specifies configuration options for an event source.

This enumeration supports a bitwise combination of its member values.

C#
[System.Flags]
public enum EventSourceSettings
Inheritance
EventSourceSettings
Attributes

Fields

Name Value Description
Default 0

None of the special configuration options are enabled.

ThrowOnEventWriteErrors 1

The event source throws an exception when an error occurs.

EtwManifestEventFormat 4

The ETW listener should use a manifest-based format when raising events. Setting this option is a directive to the ETW listener should use manifest-based format when raising events. This is the default option when defining a type derived from EventSource using one of the protected EventSource constructors.

EtwSelfDescribingEventFormat 8

The ETW listener should use self-describing event format. This is the default option when creating a new instance of the EventSource using one of the public EventSource constructors.

Remarks

Only EtwManifestEventFormat or EtwSelfDescribingEventFormat should be specified, but not both.

Applies to

Product Versions
.NET Core 1.0, Core 1.1, Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8, 9
.NET Framework 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
.NET Standard 1.3, 1.4, 1.5, 1.6, 2.0, 2.1
UWP 10.0