EventLogInvalidDataException
Represents the exception thrown when an event provider publishes invalid data in an event.
using System.ComponentModel;
using System.Runtime.Serialization;
namespace System.Diagnostics.Eventing.Reader
{
public class EventLogInvalidDataException : EventLogException
{
public EventLogInvalidDataException()
{
throw new PlatformNotSupportedException(System.SR.PlatformNotSupported_EventLog);
}
[Obsolete("This API supports obsolete formatter-based serialization. It should not be called or extended by application code.", DiagnosticId = "SYSLIB0051", UrlFormat = "https://aka.ms/dotnet-warnings/{0}")]
[EditorBrowsable(EditorBrowsableState.Never)]
protected EventLogInvalidDataException(SerializationInfo serializationInfo, StreamingContext streamingContext)
{
throw new PlatformNotSupportedException(System.SR.PlatformNotSupported_EventLog);
}
public EventLogInvalidDataException(string message)
{
throw new PlatformNotSupportedException(System.SR.PlatformNotSupported_EventLog);
}
public EventLogInvalidDataException(string message, Exception innerException)
{
throw new PlatformNotSupportedException(System.SR.PlatformNotSupported_EventLog);
}
}
}