System.Xml.Serialization.XmlArrayAttribute.ElementName Property

Gets or sets the XML element name given to the serialized array.

Syntax

public string ElementName { get; set; }

Value

Documentation for this section has not yet been entered.

Remarks

Specify an XmlArrayAttribute.ElementName when you want the generated XML element name to differ from the member's identifier.

You can set the same XmlArrayAttribute.ElementName value to more than one member as long as the generated XML document uses XML namespaces to distinguish between the identically named members. For more details about using namespaces and creating prefixed names in the XML document, see System.Xml.Serialization.XmlSerializerNamespaces.

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