Gets or sets the XML element name given to the serialized array.
Assembly: System.Xml (in System.Xml.dll)
Specify anwhen you want the generated XML element name to differ from the member's identifier.
You can set the same XmlSerializerNamespaces.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
The following example serializes an instance of the Library class that contains a property named Books that returns an array of Book items. The example uses theproperty to specify that the array of XML elements should be named My_Books rather than Books.
Available since 8
Available since 1.1
Portable Class Library
Supported in: portable .NET platforms
Available since 2.0
Windows Phone Silverlight
Available since 7.0
Available since 8.1