EventListener.EnableEvents Método
Definição
Importante
Algumas informações dizem respeito a um produto pré-lançado que pode ser substancialmente modificado antes de ser lançado. A Microsoft não faz garantias, de forma expressa ou implícita, em relação à informação aqui apresentada.
Permite eventos para a fonte de eventos especificada.
Sobrecargas
| Name | Description |
|---|---|
| EnableEvents(EventSource, EventLevel) |
Permite eventos para a fonte de eventos especificada que tenha o nível de verbosidade especificado ou inferior. |
| EnableEvents(EventSource, EventLevel, EventKeywords) |
Permite eventos para a fonte de eventos especificada que tenha o nível de verbosidade especificado ou inferior, e as bandeiras de palavras-chave correspondentes. |
| EnableEvents(EventSource, EventLevel, EventKeywords, IDictionary<String,String>) |
Permite eventos para a fonte de eventos especificada que tenha o nível de verbosidade especificado ou inferior, a flag de palavra-chave de evento correspondente e argumentos correspondentes. |
EnableEvents(EventSource, EventLevel)
Permite eventos para a fonte de eventos especificada que tenha o nível de verbosidade especificado ou 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
A fonte do evento para habilitar eventos para.
- level
- EventLevel
O nível de eventos a permitir. Usar o EventLevel.LogSempre inclui eventos de todos os níveis.
Aplica-se a
EnableEvents(EventSource, EventLevel, EventKeywords)
Permite eventos para a fonte de eventos especificada que tenha o nível de verbosidade especificado ou inferior, e as bandeiras de palavras-chave correspondentes.
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
A fonte do evento para habilitar eventos para.
- level
- EventLevel
O nível de eventos a permitir. Usar o EventLevel.LogSempre inclui eventos de todos os níveis.
- matchAnyKeyword
- EventKeywords
As palavras-chave são necessárias para ativar os eventos.
Aplica-se a
EnableEvents(EventSource, EventLevel, EventKeywords, IDictionary<String,String>)
Permite eventos para a fonte de eventos especificada que tenha o nível de verbosidade especificado ou inferior, a flag de palavra-chave de evento correspondente e argumentos correspondentes.
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
Public Sub EnableEvents (eventSource As EventSource, level As EventLevel, matchAnyKeyword As EventKeywords, arguments As IDictionary(Of String, String))
Parâmetros
- eventSource
- EventSource
A fonte do evento para habilitar eventos para.
- level
- EventLevel
O nível de eventos a permitir. Usar o EventLevel.LogSempre inclui eventos de todos os níveis.
- matchAnyKeyword
- EventKeywords
As palavras-chave são necessárias para ativar os eventos.
- arguments
- IDictionary<String,String>
Os argumentos a comparar para permitir os acontecimentos.