EventListener.EnableEvents EventListener.EnableEvents EventListener.EnableEvents Method

Definition

Enables events for the specified event source.

Overloads

EnableEvents(EventSource, EventLevel) EnableEvents(EventSource, EventLevel) EnableEvents(EventSource, EventLevel)

Enables events for the specified event source that has the specified verbosity level or lower.

EnableEvents(EventSource, EventLevel, EventKeywords) EnableEvents(EventSource, EventLevel, EventKeywords) EnableEvents(EventSource, EventLevel, EventKeywords)

Enables events for the specified event source that has the specified verbosity level or lower, and matching keyword flags.

EnableEvents(EventSource, EventLevel, EventKeywords, IDictionary<String,String>) EnableEvents(EventSource, EventLevel, EventKeywords, IDictionary<String,String>) EnableEvents(EventSource, EventLevel, EventKeywords, IDictionary<String,String>)

Enables events for the specified event source that has the specified verbosity level or lower, matching event keyword flag, and matching arguments.

EnableEvents(EventSource, EventLevel) EnableEvents(EventSource, EventLevel) EnableEvents(EventSource, EventLevel)

Enables events for the specified event source that has the specified verbosity level or lower.

public:
 void EnableEvents(System::Diagnostics::Tracing::EventSource ^ eventSource, System::Diagnostics::Tracing::EventLevel level);
public void EnableEvents (System.Diagnostics.Tracing.EventSource eventSource, System.Diagnostics.Tracing.EventLevel level);
member this.EnableEvents : System.Diagnostics.Tracing.EventSource * System.Diagnostics.Tracing.EventLevel -> unit

Parameters

eventSource
EventSource EventSource EventSource

The event source to enable events for.

level
EventLevel EventLevel EventLevel

The level of events to enable.

Remarks

If the Guid property in the specified eventSource is Empty, all event sources in the application domain are affected.

EnableEvents(EventSource, EventLevel, EventKeywords) EnableEvents(EventSource, EventLevel, EventKeywords) EnableEvents(EventSource, EventLevel, EventKeywords)

Enables events for the specified event source that has the specified verbosity level or lower, and matching keyword flags.

public:
 void EnableEvents(System::Diagnostics::Tracing::EventSource ^ eventSource, System::Diagnostics::Tracing::EventLevel level, System::Diagnostics::Tracing::EventKeywords matchAnyKeyword);
public void EnableEvents (System.Diagnostics.Tracing.EventSource eventSource, System.Diagnostics.Tracing.EventLevel level, System.Diagnostics.Tracing.EventKeywords matchAnyKeyword);
member this.EnableEvents : System.Diagnostics.Tracing.EventSource * System.Diagnostics.Tracing.EventLevel * System.Diagnostics.Tracing.EventKeywords -> unit

Parameters

eventSource
EventSource EventSource EventSource

The event source to enable events for.

level
EventLevel EventLevel EventLevel

The level of events to enable.

matchAnyKeyword
EventKeywords EventKeywords EventKeywords

The keyword flags necessary to enable the events.

Remarks

If the Guid property in the specified eventSource is Empty, all event sources in the application domain are affected.

EnableEvents(EventSource, EventLevel, EventKeywords, IDictionary<String,String>) EnableEvents(EventSource, EventLevel, EventKeywords, IDictionary<String,String>) EnableEvents(EventSource, EventLevel, EventKeywords, IDictionary<String,String>)

Enables events for the specified event source that has the specified verbosity level or lower, matching event keyword flag, and matching arguments.

public:
 void EnableEvents(System::Diagnostics::Tracing::EventSource ^ eventSource, System::Diagnostics::Tracing::EventLevel level, System::Diagnostics::Tracing::EventKeywords matchAnyKeyword, System::Collections::Generic::IDictionary<System::String ^, System::String ^> ^ arguments);
public void EnableEvents (System.Diagnostics.Tracing.EventSource eventSource, System.Diagnostics.Tracing.EventLevel level, System.Diagnostics.Tracing.EventKeywords matchAnyKeyword, System.Collections.Generic.IDictionary<string,string> arguments);
member this.EnableEvents : System.Diagnostics.Tracing.EventSource * System.Diagnostics.Tracing.EventLevel * System.Diagnostics.Tracing.EventKeywords * System.Collections.Generic.IDictionary<string, string> -> unit

Parameters

eventSource
EventSource EventSource EventSource

The event source to enable events for.

level
EventLevel EventLevel EventLevel

The level of events to enable.

matchAnyKeyword
EventKeywords EventKeywords EventKeywords

The keyword flags necessary to enable the events.

arguments
IDictionary<String,String>

The arguments to be matched to enable the events.

Remarks

If the Guid property in the specified eventSource is Empty, all event sources in the application domain are affected.

Applies to