System.Xml.Serialization.XmlRootAttribute.ElementName Property

Gets or sets the name of the XML element that is generated and recognized by the System.Xml.Serialization.XmlSerializer class's XmlSerializer.Serialize(System.IO.TextWriter, object) and XmlSerializer.Deserialize(System.IO.Stream) methods, respectively.

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 class name.

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