<PackageReference Include="System.Diagnostics.EventLog" Version="8.0.0-preview.6.23329.7" />

EventLogEntryCollection

Defines size and enumerators for a collection of EventLogEntry instances.
public int Count { get; }

Gets the number of entries in the event log (that is, the number of elements in the EventLogEntry collection).

public virtual EventLogEntry this[int index] { get; }

Gets an entry in the event log, based on an index that starts at 0 (zero).

public void CopyTo(EventLogEntry[] entries, int index)

Copies the elements of the EventLogEntryCollection to an array of EventLogEntry instances, starting at a particular array index.

Supports a simple iteration over the EventLogEntryCollection object.