Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

EventLogEntryCollection::GetEnumerator Method ()

 

Supports a simple iteration over the EventLogEntryCollection object.

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

public:
virtual IEnumerator^ GetEnumerator() sealed

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:
© 2017 Microsoft