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.
using System.Runtime.Serialization;
namespace System.Diagnostics.Eventing.Reader
{
public class EventLogNotFoundException : EventLogException
{
public EventLogNotFoundException()
{
throw new PlatformNotSupportedException(System.SR.PlatformNotSupported_EventLog);
}
protected EventLogNotFoundException(SerializationInfo serializationInfo, StreamingContext streamingContext)
{
throw new PlatformNotSupportedException(System.SR.PlatformNotSupported_EventLog);
}
public EventLogNotFoundException(string message)
{
throw new PlatformNotSupportedException(System.SR.PlatformNotSupported_EventLog);
}
public EventLogNotFoundException(string message, Exception innerException)
{
throw new PlatformNotSupportedException(System.SR.PlatformNotSupported_EventLog);
}
}
}