EventLogEntryCollection.GetEnumerator Method ()

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Supports a simple iteration over the EventLogEntryCollection object.

Namespace:   System.Diagnostics
Assembly:  System (in System.dll)

abstract GetEnumerator : unit -> IEnumerator
override GetEnumerator : unit -> IEnumerator

Return Value

Type: System.Collections.IEnumerator

An object that can be used to iterate over the collection.

The object that is returned by the GetEnumerator method is a wrapper for the EventLogEntryCollection class that implements the IEnumerator enumerator.

System_CAPS_noteNote

If the collection is changed during the iteration, the iteration is terminated. To avoid this possibility, see the Item property for an alternative technique for iterating through a collection.

.NET Framework
Available since 1.1
Return to top
Show: