This topic has not yet been rated - Rate this topic

XmlRootAttribute Properties

April 12, 2014

The XmlRootAttribute type exposes the following members.

  NameDescription
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.
Top

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft. All rights reserved.