Supports a simple iteration over the System.Diagnostics.EventLogEntryCollection object.
![]()
An object that can be used to iterate over the collection.
The object that is returned by the EventLogEntryCollection.GetEnumerator method is a wrapper for the System.Diagnostics.EventLogEntryCollection class that implements the IEnumerator enumerator.
If the collection is changed during the iteration, the iteration is terminated. To avoid this possibility, see the EventLogEntryCollection.Item(int) property for an alternative technique for iterating through a collection.