XmlAttributeAttribute.AttributeName Property

[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]

Gets or sets the name of the XML attribute.

Namespace: System.Xml.Serialization
Assembly: System.Xml (in System.Xml.dll)

Syntax

Public Property AttributeName As String
public string AttributeName { get; set; }

Property Value

Type: System..::.String
The name of the XML attribute. The default is the member name.

Remarks

Use the AttributeName property to specify an XML attribute name when the default value cannot be used. For example, if the XML attribute name is invalid as a member identifier, you can use a valid name for the identifier while setting the AttributeName to an invalid name.

Version Information

Windows Phone OS

Supported in: 8.1, 8.0, 7.1, 7.0

Platforms

Windows Phone

See Also

Reference

XmlAttributeAttribute Class

System.Xml.Serialization Namespace

ElementName