<PackageReference Include="System.Xml.XmlSerializer" Version="4.0.11-beta-23409" />

XmlAttributeAttribute

Specifies that the XmlSerializer must serialize the class member as an XML attribute.
public string AttributeName { get; set; }

Gets or sets the name of the XML attribute.

public string DataType { get; set; }

Gets or sets the XSD data type of the XML attribute generated by the XmlSerializer.

public XmlSchemaForm Form { get; set; }

Gets or sets a value that indicates whether the XML attribute name generated by the XmlSerializer is qualified.

public string Namespace { get; set; }

Gets or sets the XML namespace of the XML attribute.

public Type Type { get; set; }

Gets or sets the complex type of the XML attribute.

Initializes a new instance of the XmlAttributeAttribute class.

public XmlAttributeAttribute(string attributeName)

Initializes a new instance of the XmlAttributeAttribute class and specifies the name of the generated XML attribute.

Initializes a new instance of the XmlAttributeAttribute class.

public XmlAttributeAttribute(string attributeName, Type type)

Initializes a new instance of the XmlAttributeAttribute class.