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

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.

Initializes a new instance of the EventLogProviderDisabledException class.

protected EventLogProviderDisabledException(SerializationInfo serializationInfo, StreamingContext streamingContext)

Initializes a new instance of the EventLogProviderDisabledException class with serialized data.

public EventLogProviderDisabledException(string message)

Initializes a new instance of the EventLogProviderDisabledException class by specifying the error message that describes the current exception.

public EventLogProviderDisabledException(string message, Exception innerException)

Initializes a new instance of the EventLogProviderDisabledException class with an error message and inner exception.