Share via


ContentSerializerAttribute.ElementName Property

Gets or sets the XML element name (default=name of the managed type member).

Namespace: Microsoft.Xna.Framework.Content
Assembly: Microsoft.Xna.Framework (in microsoft.xna.framework.dll)

Syntax

public string ElementName { get; set; }

Property Value

The XML element name.

Example

ContentSerializerAttribute with ElementName set to the string "PlayerName".

[ContentSerializerAttribute( ElementName = "PlayerName" )]

See Also

Reference

ContentSerializerAttribute Class
ContentSerializerAttribute Members
Microsoft.Xna.Framework.Content Namespace

Platforms

Xbox 360, Windows 7, Windows Vista, Windows XP, Windows Phone