O'Reilly logo

C# in a Nutshell by Peter Drayton, Ted Neward, Ben Albahari

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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.Object→System.MarshalByRefObject→System.ComponentModel.Component(System.ComponentModel.IComponent, System.IDisposable)→EventLogEntry(System.Runtime.Serialization.ISerializable)

Returned By

EntryWrittenEventArgs.Entry, EventLogEntryCollection.this

Passed To

EntryWrittenEventArgs.EntryWrittenEventArgs(), EventLogEntryCollection.CopyTo()

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required