次の方法で共有


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 XP SP2, Windows Vista