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

EventLogInvalidDataException

Represents the exception thrown when an event provider publishes invalid data in an event.
using System.Runtime.Serialization; namespace System.Diagnostics.Eventing.Reader { public class EventLogInvalidDataException : EventLogException { public EventLogInvalidDataException() { throw new PlatformNotSupportedException(System.SR.PlatformNotSupported_EventLog); } 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); } } }