EventListener.EnableEvents Método
Definición
Importante
Parte de la información hace referencia a la versión preliminar del producto, que puede haberse modificado sustancialmente antes de lanzar la versión definitiva. Microsoft no otorga ninguna garantía, explícita o implícita, con respecto a la información proporcionada aquí.
Habilita eventos para el origen de eventos especificado.
Sobrecargas
| Nombre | Description |
|---|---|
| EnableEvents(EventSource, EventLevel) |
Habilita eventos para el origen de eventos especificado que tiene el nivel de detalle especificado o inferior. |
| EnableEvents(EventSource, EventLevel, EventKeywords) |
Habilita eventos para el origen de eventos especificado que tiene el nivel de detalle especificado o inferior, y marcas de palabra clave coincidentes. |
| EnableEvents(EventSource, EventLevel, EventKeywords, IDictionary<String,String>) |
Habilita eventos para el origen de eventos especificado que tiene el nivel de detalle especificado o inferior, la marca de palabra clave de evento coincidente y los argumentos coincidentes. |
EnableEvents(EventSource, EventLevel)
- Source:
- EventSource.cs
- Source:
- EventListener.cs
- Source:
- EventSource.cs
- Source:
- EventSource.cs
- Source:
- EventSource.cs
Habilita eventos para el origen de eventos especificado que tiene el nivel de detalle especificado o inferior.
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)
Parámetros
- eventSource
- EventSource
Origen del evento para el que se habilitarán los eventos.
- level
- EventLevel
Nivel de eventos que se va a habilitar. El uso de EventLevel.LogAlways incluye eventos de todos los niveles.
Se aplica a
EnableEvents(EventSource, EventLevel, EventKeywords)
- Source:
- EventSource.cs
- Source:
- EventListener.cs
- Source:
- EventSource.cs
- Source:
- EventSource.cs
- Source:
- EventSource.cs
Habilita eventos para el origen de eventos especificado que tiene el nivel de detalle especificado o inferior, y marcas de palabra clave coincidentes.
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)
Parámetros
- eventSource
- EventSource
Origen del evento para el que se habilitarán los eventos.
- level
- EventLevel
Nivel de eventos que se va a habilitar. El uso de EventLevel.LogAlways incluye eventos de todos los niveles.
- matchAnyKeyword
- EventKeywords
Marcas de palabra clave necesarias para habilitar los eventos.
Se aplica a
EnableEvents(EventSource, EventLevel, EventKeywords, IDictionary<String,String>)
- Source:
- EventSource.cs
- Source:
- EventListener.cs
- Source:
- EventSource.cs
- Source:
- EventSource.cs
- Source:
- EventSource.cs
Habilita eventos para el origen de eventos especificado que tiene el nivel de detalle especificado o inferior, la marca de palabra clave de evento coincidente y los argumentos coincidentes.
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))
Parámetros
- eventSource
- EventSource
Origen del evento para el que se habilitarán los eventos.
- level
- EventLevel
Nivel de eventos que se va a habilitar. El uso de EventLevel.LogAlways incluye eventos de todos los niveles.
- matchAnyKeyword
- EventKeywords
Marcas de palabra clave necesarias para habilitar los eventos.
- arguments
- IDictionary<String,String>
Argumentos que se van a buscar para habilitar los eventos.