Early Preview
This is currently very much a preview. Please feel free to try things out,
but don't be upset if anything is not yet working. Feedback is welcome over on our
GitHub Dicussions page.
class System.​Xml.​Serialization.​XmlElementAttribute
Assembly: System.Xml.ReaderWriter
Inheritance: object → Attribute → XmlElementAttribute
Indicates that a public field or property represents an XML element when the <see cref="T:System.Xml.Serialization.XmlSerializer" /> serializes or deserializes the object that contains it.
Properties
public
string
DataType
Gets or sets the XML Schema definition (XSD) data type of the XML element generated by the <see cref="T:System.Xml.Serialization.XmlSerializer" /> .
public
string
ElementName
Gets or sets the name of the generated XML element.
Form
Gets or sets a value that indicates whether the element is qualified.
public
bool
IsNullable
Gets or sets a value that indicates whether the <see cref="T:System.Xml.Serialization.XmlSerializer" /> must serialize a member that is set to <see langword="null" /> as an empty tag with the <see langword="xsi:nil" /> attribute set to <see langword="true" /> .
public
string
Namespace
Gets or sets the namespace assigned to the XML element that results when the class is serialized.
public
int
Order
Gets or sets the explicit order in which the elements are serialized or deserialized.
public
Type
Type
Gets or sets the object type used to represent the XML element.
public
object
TypeId
Methods
protected
void
Finalize​()
Inherited from object
protected
object
MemberwiseClone​()
Inherited from object
public
string
ToString​()
Inherited from object