Export (0) Print
Expand All

EventListener.DisableEvents Method

.NET Framework 4.5

Disables all events for the specified event source.

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

public void DisableEvents(
	EventSource eventSource


Type: System.Diagnostics.Tracing.EventSource

The event source to disable events for.

If the Guid property for eventSource is Empty, events for all event sources in the application domain are disabled for this event listener.

.NET Framework

Supported in: 4.6, 4.5

Supported in: Windows Phone 8.1
© 2015 Microsoft