XmlAttributes.XmlEnum Property
[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]
Gets or sets an object that specifies how the XmlSerializer serializes an enumeration member.
Assembly: System.Xml.Serialization (in System.Xml.Serialization.dll)
Property Value
Type: System.Xml.Serialization.XmlEnumAttributeAn XmlEnumAttribute that specifies how the XmlSerializer serializes an enumeration member.
For each identifier you want to override, you must create an XmlAttributes object and set the XmlEnum property to an XmlEnumAttribute that overrides the identifier. Add the XmlAttributes object to the XmlAttributeOverrides object and specify both the Type of the class that contains the enumeration and the overridden member name.