Creates an InvalidOperationException that indicates that a value for an XML element does not match an enumeration type.
![]()
The newly created exception.
The protected members of System.Xml.Serialization.XmlSerializationWriter are intended for use only by derived classes that are used internally within the .NET Framework XML serialization infrastructure.