[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]
Gets or sets the name of the generated XML element.
Assembly: System.Xml (in System.Xml.dll)
Specify an if you want the name of the generated XML element to differ from the member's identifier.
You can set the same ElementName value to more than one class member if the generated XML document uses XML namespaces to distinguish between identically named members.
For more information abouthow to use namespaces and prefixed names in the XML document, see the XmlSerializerNamespaces class.