Condividi tramite


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)

Syntax

public Genre this [
         int index
] { get; }

Property Value

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

Remarks

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.

See Also

Reference

Genre Class
GenreCollection Class
GenreCollection Members
Microsoft.Xna.Framework.Media Namespace

Platforms

Xbox 360, Windows XP SP2, Windows Vista, Zune