<PackageReference Include="System.Diagnostics.EventLog" Version="9.0.0-preview.4.24266.19" />

EventLogQuery

public class EventLogQuery
Represents a query for events in an event log and the settings that define how the query is executed and on what computer the query is executed on.
namespace System.Diagnostics.Eventing.Reader { public class EventLogQuery { public bool ReverseDirection { get { throw new PlatformNotSupportedException(System.SR.PlatformNotSupported_EventLog); } set { throw new PlatformNotSupportedException(System.SR.PlatformNotSupported_EventLog); } } public EventLogSession Session { get { throw new PlatformNotSupportedException(System.SR.PlatformNotSupported_EventLog); } set { throw new PlatformNotSupportedException(System.SR.PlatformNotSupported_EventLog); } } public bool TolerateQueryErrors { get { throw new PlatformNotSupportedException(System.SR.PlatformNotSupported_EventLog); } set { throw new PlatformNotSupportedException(System.SR.PlatformNotSupported_EventLog); } } public EventLogQuery(string path, PathType pathType) { throw new PlatformNotSupportedException(System.SR.PlatformNotSupported_EventLog); } public EventLogQuery(string path, PathType pathType, string query) { throw new PlatformNotSupportedException(System.SR.PlatformNotSupported_EventLog); } } }