XmlElementAttribute.ElementName Property
Gets or sets the name of the generated XML element.
Namespace: System.Xml.Serialization
Assembly: System.Xml (in System.Xml.dll)
Property Value
Type: System.StringThe name of the generated XML element. The default is the member identifier.
Specify an ElementName 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 the identically named members.
For more information about
how to use namespaces and prefixed names in the XML document, see the XmlSerializerNamespaces class.For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.