Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Item Property
Collapse the table of content
Expand the table of content

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

Community Additions

ADD
Show:
© 2015 Microsoft