XmlRootAttribute Properties
Collapse the table of content
Expand the table of content

XmlRootAttribute Properties

[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]

The XmlRootAttribute type exposes the following members.

Public property DataType Gets or sets the XSD data type of the XML root element.
Public property ElementName Gets or sets the name of the XML element that is generated and recognized by the XmlSerializer class's Serialize and Deserialize methods, respectively.
Public property IsNullable Gets or sets a value that indicates whether the XmlSerializer must serialize a member that is set to null into the xsi:nil attribute set to true.
Public property Namespace Gets or sets the namespace for the XML root element.

© 2017 Microsoft