System.Xml.Serialization.XmlRootAttribute Members

The members of System.Xml.Serialization.XmlRootAttribute are listed below.

See Also: Inherited members from System.Attribute

Public Constructors

Initializes a new instance of the System.Xml.Serialization.XmlRootAttribute class.

Initializes a new instance of the System.Xml.Serialization.XmlRootAttribute class and specifies the name of the XML root element.

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.