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

EventLogSession

public class EventLogSession : IDisposable
using System.Collections.Generic; using System.Globalization; using System.Security; namespace System.Diagnostics.Eventing.Reader { public class EventLogSession : IDisposable { public static EventLogSession GlobalSession { get { throw new PlatformNotSupportedException(System.SR.PlatformNotSupported_EventLog); } } public EventLogSession() { throw new PlatformNotSupportedException(System.SR.PlatformNotSupported_EventLog); } public EventLogSession(string server) { throw new PlatformNotSupportedException(System.SR.PlatformNotSupported_EventLog); } public EventLogSession(string server, string domain, string user, SecureString password, SessionAuthentication logOnType) { throw new PlatformNotSupportedException(System.SR.PlatformNotSupported_EventLog); } public void CancelCurrentOperations() { throw new PlatformNotSupportedException(System.SR.PlatformNotSupported_EventLog); } public void ClearLog(string logName) { throw new PlatformNotSupportedException(System.SR.PlatformNotSupported_EventLog); } public void ClearLog(string logName, string backupPath) { throw new PlatformNotSupportedException(System.SR.PlatformNotSupported_EventLog); } public void Dispose() { } protected virtual void Dispose(bool disposing) { } public void ExportLog(string path, PathType pathType, string query, string targetFilePath) { throw new PlatformNotSupportedException(System.SR.PlatformNotSupported_EventLog); } public void ExportLog(string path, PathType pathType, string query, string targetFilePath, bool tolerateQueryErrors) { throw new PlatformNotSupportedException(System.SR.PlatformNotSupported_EventLog); } public void ExportLogAndMessages(string path, PathType pathType, string query, string targetFilePath) { throw new PlatformNotSupportedException(System.SR.PlatformNotSupported_EventLog); } public void ExportLogAndMessages(string path, PathType pathType, string query, string targetFilePath, bool tolerateQueryErrors, CultureInfo targetCultureInfo) { throw new PlatformNotSupportedException(System.SR.PlatformNotSupported_EventLog); } public EventLogInformation GetLogInformation(string logName, PathType pathType) { throw new PlatformNotSupportedException(System.SR.PlatformNotSupported_EventLog); } public IEnumerable<string> GetLogNames() { throw new PlatformNotSupportedException(System.SR.PlatformNotSupported_EventLog); } public IEnumerable<string> GetProviderNames() { throw new PlatformNotSupportedException(System.SR.PlatformNotSupported_EventLog); } } }