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

EventLogReadingException

Represents an exception that is thrown when an error occurred while reading, querying, or subscribing to the events in an event log.

Initializes a new instance of the EventLogReadingException class.

protected EventLogReadingException(SerializationInfo serializationInfo, StreamingContext streamingContext)

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

public EventLogReadingException(string message)

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

public EventLogReadingException(string message, Exception innerException)

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