EventListener.EnableEvents Método

Definição

Habilita eventos para a origem do evento especificada.Enables events for the specified event source.

Sobrecargas

EnableEvents(EventSource, EventLevel)

Habilita eventos para a origem do evento especificado que têm o nível de detalhes especificado ou inferior.Enables events for the specified event source that has the specified verbosity level or lower.

EnableEvents(EventSource, EventLevel, EventKeywords)

Habilita eventos para a origem do evento especificado que têm o nível de detalhes especificado ou inferior e os sinalizadores de palavra-chave de correspondência.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>)

Habilita eventos para a origem do evento especificada que têm o nível de detalhes especificado ou inferior e os sinalizadores de palavra-chave e argumentos correspondentes.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)

Habilita eventos para a origem do evento especificado que têm o nível de detalhes especificado ou inferior.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

Parâmetros

eventSource
EventSource

A origem do evento para a qual os eventos serão habilitados.The event source to enable events for.

level
EventLevel

O nível de eventos a ser habilitado.The level of events to enable.

Comentários

Se a propriedade Guid no eventSource especificado for Empty, todas as origens de evento no domínio do aplicativo serão afetadas.If the Guid property in the specified eventSource is Empty, all event sources in the application domain are affected.

EnableEvents(EventSource, EventLevel, EventKeywords)

Habilita eventos para a origem do evento especificado que têm o nível de detalhes especificado ou inferior e os sinalizadores de palavra-chave de correspondência.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

Parâmetros

eventSource
EventSource

A origem do evento para a qual os eventos serão habilitados.The event source to enable events for.

level
EventLevel

O nível de eventos a ser habilitado.The level of events to enable.

matchAnyKeyword
EventKeywords

Os sinalizadores de palavra-chave necessários para habilitar os eventos.The keyword flags necessary to enable the events.

Comentários

Se a propriedade Guid no eventSource especificado for Empty, todas as origens de evento no domínio do aplicativo serão afetadas.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>)

Habilita eventos para a origem do evento especificada que têm o nível de detalhes especificado ou inferior e os sinalizadores de palavra-chave e argumentos correspondentes.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

Parâmetros

eventSource
EventSource

A origem do evento para a qual os eventos serão habilitados.The event source to enable events for.

level
EventLevel

O nível de eventos a ser habilitado.The level of events to enable.

matchAnyKeyword
EventKeywords

Os sinalizadores de palavra-chave necessários para habilitar os eventos.The keyword flags necessary to enable the events.

arguments
IDictionary<String,String>

Os argumentos a serem correspondidos para habilitar os eventos.The arguments to be matched to enable the events.

Comentários

Se a propriedade Guid no eventSource especificado for Empty, todas as origens de evento no domínio do aplicativo serão afetadas.If the Guid property in the specified eventSource is Empty, all event sources in the application domain are affected.

Aplica-se a