The members of System.Xml.Serialization.XmlRootAttribute are listed below.
See Also: Inherited members from System.Attribute
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. |
DataType | string.
Gets or sets the XSD data type of the XML root element. | |
ElementName | string.
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. | |
IsNullable | bool.
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. | |
Namespace | string.
Gets or sets the namespace for the XML root element. |