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.

EventSource Constructor (EventSourceSettings)

.NET Framework (current version)
 

Creates a new instance of the EventSource class with the specified configuration settings.

Namespace:   System.Diagnostics.Tracing
Assembly:  mscorlib (in mscorlib.dll)

protected:
EventSource(
	EventSourceSettings settings
)

Parameters

settings
Type: System.Diagnostics.Tracing::EventSourceSettings

A bitwise combination of the enumeration values that specify the configuration settings to apply to the event source.

Specifying settings when the EventSource is constructed enables you to specify whether the event is written in a manifest-based or a self-describing format. In addition, you can specify that an exception should be raised when an error occurs during the event-writing process.

Universal Windows Platform
Available since 10
.NET Framework
Available since 4.6
Return to top
Show:
© 2017 Microsoft