System.Xml.Serialization.XmlElementAttribute.ElementName Property

Gets or sets the name of the generated XML element.

Syntax

public string ElementName { get; set; }

Value

Documentation for this section has not yet been entered.

Remarks

Specify an XmlArrayItemAttribute.ElementName if you want the name of the generated XML element to differ from the member's identifier.

You can set the same XmlArrayAttribute.ElementName value to more than one class member if the generated XML document uses XML namespaces to distinguish between the identically named members. For details on how to use namespaces and prefixed names in the XML document, see the System.Xml.Serialization.XmlSerializerNamespaces class.

Requirements

Namespace: System.Xml.Serialization
Assembly: System.Xml (in System.Xml.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0, 4.0.0.0