ContentSerializerAttribute.CollectionItemName Property
Gets or sets the XML element name for each item in a collection (default = "Item").
Namespace: Microsoft.Xna.Framework.Content
Assembly: Microsoft.Xna.Framework (in microsoft.xna.framework.dll)
Syntax
public string CollectionItemName { get; set; }
Property Value
The XML element name for each item in the collection.
Exceptions
Exception type | Condition |
---|---|
ArgumentNullException | CollectionItemName is null. |
Example
ContentSerializerAttribute with CollectionItemName set to the string "PlayerName":
[ContentSerializerAttribute( CollectionItemName = "PlayerName" )]
See Also
Reference
ContentSerializerAttribute Class
ContentSerializerAttribute Members
Microsoft.Xna.Framework.Content Namespace
Platforms
Xbox 360, Windows XP SP2, Windows Vista