XmlAttributes.XmlType 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 a class to which the XmlTypeAttribute has been applied.
Assembly: System.Xml.Serialization (in System.Xml.Serialization.dll)
Property Value
Type: System.Xml.Serialization.XmlTypeAttributeAn XmlTypeAttribute that overrides an XmlTypeAttribute applied to a class declaration.
The XmlTypeAttribute can be used to control how a type is serialized by the XmlSerializer. For example, by default, when a type is serialized, the XmlSerializer uses the class name as the XML element name. By creating an XmlTypeAttribute, setting the XmlType property to it, and creating an XmlAttributeOverrides object, you can change the XML element name.