XmlElementAttribute Class |
Namespace: System.Xml.Serialization
public class XmlElementAttribute : Attribute
The XmlElementAttribute type exposes the following members.
Name | Description | |
---|---|---|
XmlElementAttribute |
Initializes a new instance of the System.Xml.Serialization.XmlElementAttribute
class.
| |
XmlElementAttribute(String) |
Initializes a new instance of the System.Xml.Serialization.XmlElementAttribute
class and specifies the name of the XML element.
| |
XmlElementAttribute(Type) |
Initializes a new instance of the System.Xml.Serialization.XmlElementAttribute
class and specifies a type for the member to which the System.Xml.Serialization.XmlElementAttribute
is applied. This type is used by the System.Xml.Serialization.XmlSerializer
when serializing or deserializing object that contains it.
| |
XmlElementAttribute(String, Type) |
Initializes a new instance of the System.Xml.Serialization.XmlElementAttribute
and specifies the name of the XML element and a derived type for the member
to which the System.Xml.Serialization.XmlElementAttribute is applied. This
member type is used when the System.Xml.Serialization.XmlSerializer serializes
the object that contains it.
|
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 XML Schema definition (XSD) data type of the XML element
generated by the System.Xml.Serialization.XmlSerializer.
| |
ElementName |
Gets or sets the name of the generated XML element.
| |
Form |
Gets or sets a value that indicates whether the element is qualified.
| |
IsNullable |
Gets or sets a value that indicates whether the System.Xml.Serialization.XmlSerializer
must serialize a member that is set to null as an empty tag with the xsi:nil
attribute set to true.
| |
Namespace |
Gets or sets the namespace assigned to the XML element that results when
the class is serialized.
| |
Order |
Gets or sets the explicit order in which the elements are serialized or deserialized.
| |
Type |
Gets or sets the object type used to represent the XML element.
|