Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

GenreCollection.Item Property

Gets the Genre at the specified index in the GenreCollection.

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

public Genre this [
         int index
] { get; }

Property Value

A new Genre representing the genre at the specified index in this GenreCollection.

Each call returns a new Genre instance.

Genre resources such as the song and album collections for that genre are cached in each Genre instance. Retrieving and maintaining references to multiple instances of the same genre, and accessing the Songs or Albums collections on each of those instances, creates multiple copies of the song or album collections.

Xbox 360, Windows 7, Windows Vista, Windows XP, Windows Phone
Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

© 2014 Microsoft. All rights reserved.