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

EventLogNotFoundException

Represents the exception that is thrown when a requested event log (usually specified by the name of the event log or the path to the event log file) does not exist.

Initializes a new instance of the EventLogNotFoundException class.

protected EventLogNotFoundException(SerializationInfo serializationInfo, StreamingContext streamingContext)

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

public EventLogNotFoundException(string message)

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

public EventLogNotFoundException(string message, Exception innerException)

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