This documentation is archived and is not being maintained.

XmlRootAttribute Properties

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 IsNullableSpecified Gets whether the xsi:nil attribute has been set to true.
Public property Namespace Gets or sets the namespace for the XML root element.
Public property TypeId When implemented in a derived class, gets a unique identifier for this Attribute. (Inherited from Attribute.)