EventRecordWrittenEventArgs Classe

Definição

Quando o EventRecordWritten é acionado, uma instância do objeto é passada para o método de delegado que manipula o evento.When the EventRecordWritten event is raised, an instance of this object is passed to the delegate method that handles the event. Este objeto contém o evento que foi publicado para o log de eventos ou a exceção que ocorreu quando a assinatura do evento falhou.This object contains the event that was published to the event log or the exception that occurred when the event subscription failed.

public ref class EventRecordWrittenEventArgs sealed : EventArgs
public sealed class EventRecordWrittenEventArgs : EventArgs
type EventRecordWrittenEventArgs = class
    inherit EventArgs
Public NotInheritable Class EventRecordWrittenEventArgs
Inherits EventArgs
Herança
EventRecordWrittenEventArgs

Exemplos

Para obter um exemplo de código usando essa classe, consulte como: assinar eventos em um log de eventos.For example code using this class, see How to: Subscribe to Events in an Event Log.

Propriedades

EventException

Obtém a exceção que ocorreu quando a assinatura do evento falhou.Gets the exception that occurred when the event subscription failed. A exceção contém uma descrição do motivo pelo qual a assinatura falhou.The exception has a description of why the subscription failed.

EventRecord

Obtém o registro de evento que é publicado para o log de eventos.Gets the event record that is published to the event log. Esse evento corresponde aos critérios da consulta especificada na assinatura do evento.This event matches the criteria from the query specified in the event subscription.

Métodos

Equals(Object)

Determina se o objeto especificado é igual ao objeto atual.Determines whether the specified object is equal to the current object.

(Herdado de Object)
GetHashCode()

Serve como a função de hash padrão.Serves as the default hash function.

(Herdado de Object)
GetType()

Obtém o Type da instância atual.Gets the Type of the current instance.

(Herdado de Object)
MemberwiseClone()

Cria uma cópia superficial do Object atual.Creates a shallow copy of the current Object.

(Herdado de Object)
ToString()

Retorna uma cadeia de caracteres que representa o objeto atual.Returns a string that represents the current object.

(Herdado de Object)

Aplica-se a