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

定義

停用指定之事件來源的所有事件。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

參數

eventSource
EventSource EventSource EventSource

要為其停用事件的事件來源。The event source to disable events for.

備註

如果的Guid eventSource屬性是Empty, 則會針對此事件接聽程式停用應用程式域中所有事件來源的事件。If the Guid property for eventSource is Empty, events for all event sources in the application domain are disabled for this event listener.

適用於