EventLog.Entries : EventLog « System.Diagnostics « VB.Net by API






EventLog.Entries

  
Imports System.Diagnostics

Module Module1
    Sub Main()

        Dim Log As New EventLog("Application")
        Dim Evt As EventLogEntry
        For Each Evt In Log.Entries
            Console.WriteLine(Evt.Message)
            Console.WriteLine(Evt.TimeGenerated)
            
            Console.WriteLine(Evt.Source)
            
        Next
    End Sub
End Module

   
    
  








Related examples in the same category

1.New EventLog
2.EventLog.CreateEventSource
3.EventLog.Source
4.EventLog.SourceExists
5.EventLog.WriteEntry