System.Xml.Serialization.XmlRootAttribute: Property Members

The properties of System.Xml.Serialization.XmlRootAttribute are listed below. For a list of all members, see the XmlRootAttribute Members list.

See Also: Inherited members from System.Attribute

Public Properties

DataTypestring.

Gets or sets the XSD data type of the XML root element.

ElementNamestring.

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.

IsNullablebool.

Gets or sets a value that indicates whether the System.Xml.Serialization.XmlSerializer must serialize a member that is set to null into the xsi:nil attribute set to true.

Namespacestring.

Gets or sets the namespace for the XML root element.