Click or drag to resize
XmlRootAttribute Class
Controls XML serialization of the attribute target as an XML root element.
Inheritance Hierarchy
SystemObject
  SystemAttribute
    System.Xml.SerializationXmlRootAttribute

Namespace: System.Xml.Serialization
Assembly: CSharpXamlForHtml5.System.Xml.dll (in CSharpXamlForHtml5.System.Xml.dll.dll) Version: 1.0.0.0
Syntax
C#
public class XmlRootAttribute : Attribute

The XmlRootAttribute type exposes the following members.

Constructors
  NameDescription
Public methodXmlRootAttribute
Initializes a new instance of the System.Xml.Serialization.XmlRootAttribute class.
Public methodXmlRootAttribute(String)
Initializes a new instance of the System.Xml.Serialization.XmlRootAttribute class and specifies the name of the XML root element.
Top
Methods
  NameDescription
Public methodEquals
Returns a value that indicates whether this instance is equal to a specified object.
(Inherited from Attribute.)
Public methodGetHashCode
Returns the hash code for this instance.
(Inherited from Attribute.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
Properties
  NameDescription
Public propertyDataType
Gets or sets the XSD data type of the XML root element.
Public propertyElementName
Gets or sets the name of the XML element that is generated and recognized by the System.Xml.Serialization.XmlSerializer class's System.Xml.Serialization.XmlSerializer.Serialize(System.IO.TextWriter,System.Object) and System.Xml.Serialization.XmlSerializer.Deserialize(System.IO.Stream) methods, respectively.
Public propertyIsNullable
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.
Public propertyNamespace
Gets or sets the namespace for the XML root element.
Top
See Also