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 NotInheritable Class EventLogEntry : Inherits System.ComponentModel.Component : Implements 
        System.Runtime.Serialization.ISerializable
' Public Instance Properties
   Public ReadOnly Property Category As String  
   Public ReadOnly Property CategoryNumber As Short  
   Public ReadOnly Property Data As Byte()  
   Public ReadOnly Property EntryType As EventLogEntryType  
   Public ReadOnly Property EventID As Integer  
   Public ReadOnly Property Index As Integer  
   Public ReadOnly Property MachineName As String  
   Public ReadOnly Property Message As String  
   Public ReadOnly Property ReplacementStrings As String()  
   Public ReadOnly Property Source As String  
   Public ReadOnly Property TimeGenerated As Date  
   Public ReadOnly Property TimeWritten As Date  
   Public ReadOnly Property UserName As String  
' Public Instance Methods
   Public Function Equals(
        ByVal otherEntry As EventLogEntry) As Boolean  
End Class

Hierarchy

System.ObjectSystem.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()

Get VB.NET Core Classes 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.