Name

EventLogEntry

Synopsis

This class represents an individual entry from an EventLog. A collection of these objects is available through EventLog.Entries. This class exposes all the properties of an event log entry.

public sealed class EventLogEntry : System.ComponentModel.Component, 
                                              System.Runtime.Serialization.ISerializable {
// Public Instance Properties
   public field string Category{get; } 
   public field short CategoryNumber{get; } 
   public field byte[] Data{get; } 
   public field EventLogEntryType EntryType{get; } 
   public field int EventID{get; } 
   public field int Index{get; } 
   public field string MachineName{get; } 
   public field string Message{get; } 
   public field string[] ReplacementStrings{get; } 
   public field string Source{get; } 
   public field DateTime TimeGenerated{get; } 
   public field DateTime TimeWritten{get; } 
   public field string UserName{get; } 
// Public Instance Methods
   public method bool Equals(EventLogEntry otherEntry);  
}

Hierarchy

System.ObjectSystem.MarshalByRefObjectSystem.ComponentModel.Component(System.ComponentModel.IComponent, System.IDisposable)EventLogEntry(System.Runtime.Serialization.ISerializable)

Returned By

EntryWrittenEventArgs.Entry, EventLogEntryCollection.this

Passed To

EntryWrittenEventArgs.EntryWrittenEventArgs(), EventLogEntryCollection.CopyTo()

Get C# in a Nutshell now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.