EventListener.DisableEvents(EventSource) EventListener.DisableEvents(EventSource) EventListener.DisableEvents(EventSource) Method

Definition

Disables all events for the specified event source.

public:
 void DisableEvents(System::Diagnostics::Tracing::EventSource ^ eventSource);
public void DisableEvents (System.Diagnostics.Tracing.EventSource eventSource);
member this.DisableEvents : System.Diagnostics.Tracing.EventSource -> unit

Parameters

eventSource
EventSource EventSource EventSource

The event source to disable events for.

Remarks

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

Applies to