XmlRootAttribute Class |
Namespace: System.Xml.Serialization
public class XmlRootAttribute : Attribute
The XmlRootAttribute type exposes the following members.
Name | Description | |
---|---|---|
![]() | XmlRootAttribute |
Initializes a new instance of the System.Xml.Serialization.XmlRootAttribute
class.
|
![]() | XmlRootAttribute(String) |
Initializes a new instance of the System.Xml.Serialization.XmlRootAttribute
class and specifies the name of the XML root element.
|
Name | Description | |
---|---|---|
![]() | Equals | Returns a value that indicates whether this instance is equal to a specified object. (Inherited from Attribute.) |
![]() | GetHashCode | Returns the hash code for this instance. (Inherited from Attribute.) |
![]() | GetType | Gets the Type of the current instance. (Inherited from Object.) |
![]() | MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) |
![]() | ToString | Returns a string that represents the current object. (Inherited from Object.) |
Name | Description | |
---|---|---|
![]() | DataType |
Gets or sets the XSD data type of the XML root element.
|
![]() | ElementName |
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.
|
![]() | IsNullable |
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 |
Gets or sets the namespace for the XML root element.
|