Click or drag to resize
XmlElementAttribute Class
Indicates that a public field or property represents an XML element when the System.Xml.Serialization.XmlSerializer serializes or deserializes the object that contains it.
Inheritance Hierarchy
SystemObject
  SystemAttribute
    System.Xml.SerializationXmlElementAttribute

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

The XmlElementAttribute type exposes the following members.

Constructors
  NameDescription
Public methodXmlElementAttribute
Initializes a new instance of the System.Xml.Serialization.XmlElementAttribute class.
Public methodXmlElementAttribute(String)
Initializes a new instance of the System.Xml.Serialization.XmlElementAttribute class and specifies the name of the XML element.
Public methodXmlElementAttribute(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.
Public methodXmlElementAttribute(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.
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 XML Schema definition (XSD) data type of the XML element generated by the System.Xml.Serialization.XmlSerializer.
Public propertyElementName
Gets or sets the name of the generated XML element.
Public propertyForm
Gets or sets a value that indicates whether the element is qualified.
Public propertyIsNullable
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.
Public propertyNamespace
Gets or sets the namespace assigned to the XML element that results when the class is serialized.
Public propertyOrder
Gets or sets the explicit order in which the elements are serialized or deserialized.
Public propertyType
Gets or sets the object type used to represent the XML element.
Top
See Also