System.Xml.Serialization.XmlElementAttribute Members

The members of System.Xml.Serialization.XmlElementAttribute are listed below.

See Also: Inherited members from System.Attribute

Public Constructors

Initializes a new instance of the System.Xml.Serialization.XmlElementAttribute class.

Initializes a new instance of the System.Xml.Serialization.XmlElementAttribute class and specifies the name of the XML element.

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.

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.

Public Properties

DataTypestring.

Gets or sets the XML Schema definition (XSD) data type of the XML element generated by the System.Xml.Serialization.XmlSerializer.

ElementNamestring.

Gets or sets the name of the generated XML element.

FormSystem.Xml.Schema.XmlSchemaForm.

Gets or sets a value that indicates whether the element is qualified.

IsNullablebool.

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.

Namespacestring.

Gets or sets the namespace assigned to the XML element that results when the class is serialized.

Orderint.

Gets or sets the explicit order in which the elements are serialized or deserialized.

TypeType.

Gets or sets the object type used to represent the XML element.