Edit

Share via


EventListener.EnableEvents Method

Definition

Enables events for the specified event source.

Overloads

EnableEvents(EventSource, EventLevel)

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

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>)

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)

Source:
EventSource.cs
Source:
EventSource.cs
Source:
EventSource.cs

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);

Parameters

eventSource
EventSource

The event source to enable events for.

level
EventLevel

The level of events to enable. Using EventLevel.LogAlways includes events of all levels.

Applies to

EnableEvents(EventSource, EventLevel, EventKeywords)

Source:
EventSource.cs
Source:
EventSource.cs
Source:
EventSource.cs

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);

Parameters

eventSource
EventSource

The event source to enable events for.

level
EventLevel

The level of events to enable. Using EventLevel.LogAlways includes events of all levels.

matchAnyKeyword
EventKeywords

The keyword flags necessary to enable the events.

Applies to

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

Source:
EventSource.cs
Source:
EventSource.cs
Source:
EventSource.cs

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<string,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);

Parameters

eventSource
EventSource

The event source to enable events for.

level
EventLevel

The level of events to enable. Using EventLevel.LogAlways includes events of all levels.

matchAnyKeyword
EventKeywords

The keyword flags necessary to enable the events.

arguments
IDictionary<String,String>

The arguments to be matched to enable the events.

Applies to