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::Write Method (String^, EventSourceOptions)

.NET Framework (current version)
 

Writes an event without fields, but with the specified name and options.

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

public:
void Write(
	String^ eventName,
	EventSourceOptions options
)

Parameters

eventName
Type: System::String^

The name of the event to write.

options
Type: System.Diagnostics.Tracing::EventSourceOptions

The options such as level, keywords and operation code for the event.

Exception Condition
ArgumentNullException

eventName is null.

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