Rediger

Del 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);
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
Public Sub EnableEvents (eventSource As EventSource, level As EventLevel)

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);
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
Public Sub EnableEvents (eventSource As EventSource, level As EventLevel, matchAnyKeyword As EventKeywords)

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<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);
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
Public Sub EnableEvents (eventSource As EventSource, level As EventLevel, matchAnyKeyword As EventKeywords, arguments As IDictionary(Of String, String))

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