<PackageReference Include="System.Diagnostics.EventLog" Version="10.0.3" />

System.Diagnostics.Eventing.Reader.EventLogProviderDisabledException

Represents the exception that is thrown when a specified event provider name references a disabled event provider. A disabled event provider cannot publish events.
namespace System.Diagnostics.Eventing.Reader { public class EventLogProviderDisabledException : EventLogException { public EventLogProviderDisabledException(); protected EventLogProviderDisabledException(SerializationInfo serializationInfo, StreamingContext streamingContext); public EventLogProviderDisabledException(string message); public EventLogProviderDisabledException(string message, Exception innerException); } }