Export (0) Print
Expand All

GenreCollection Class

The collection of all genres in the media library.

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

public sealed class GenreCollection : IEnumerable<Genre>, IEnumerable

The GenreCollection class provides access to all genres in the device's media library.

Use the MediaLibrary.Genres property to obtain the genre collection.

The GenreCollection does not immediately instantiate instances of all genres in the collection. Instead, individual Genre objects are created each time a genre is accessed through the collection's Item indexer.

Xbox 360, Windows XP SP2, Windows Vista, Zune

Community Additions

ADD
Show:
© 2014 Microsoft