<PackageReference Include="System.Diagnostics.EventLog" Version="9.0.0-rc.1.24431.7" />

EventLogReader

public class EventLogReader : IDisposable
Enables you to read events from an event log based on an event query. The events that are read by this object are returned as EventRecord objects.
using System.Collections.Generic; using System.IO; namespace System.Diagnostics.Eventing.Reader { public class EventLogReader : IDisposable { public int BatchSize { get { throw new PlatformNotSupportedException(System.SR.PlatformNotSupported_EventLog); } set { throw new PlatformNotSupportedException(System.SR.PlatformNotSupported_EventLog); } } public IList<EventLogStatus> LogStatus { get { throw new PlatformNotSupportedException(System.SR.PlatformNotSupported_EventLog); } } public EventLogReader(EventLogQuery eventQuery) { throw new PlatformNotSupportedException(System.SR.PlatformNotSupported_EventLog); } public EventLogReader(EventLogQuery eventQuery, EventBookmark bookmark) { throw new PlatformNotSupportedException(System.SR.PlatformNotSupported_EventLog); } public EventLogReader(string path) { throw new PlatformNotSupportedException(System.SR.PlatformNotSupported_EventLog); } public EventLogReader(string path, PathType pathType) { throw new PlatformNotSupportedException(System.SR.PlatformNotSupported_EventLog); } public void CancelReading() { throw new PlatformNotSupportedException(System.SR.PlatformNotSupported_EventLog); } public void Dispose() { } protected virtual void Dispose(bool disposing) { } public EventRecord ReadEvent() { throw new PlatformNotSupportedException(System.SR.PlatformNotSupported_EventLog); } public EventRecord ReadEvent(TimeSpan timeout) { throw new PlatformNotSupportedException(System.SR.PlatformNotSupported_EventLog); } public void Seek(EventBookmark bookmark) { throw new PlatformNotSupportedException(System.SR.PlatformNotSupported_EventLog); } public void Seek(EventBookmark bookmark, long offset) { throw new PlatformNotSupportedException(System.SR.PlatformNotSupported_EventLog); } public void Seek(SeekOrigin origin, long offset) { throw new PlatformNotSupportedException(System.SR.PlatformNotSupported_EventLog); } } }