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)

Syntax

public sealed class GenreCollection : IEnumerable<Genre>, IEnumerable, IDisposable

Remarks

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.

See Also

Reference

MediaLibrary.Genres Property
Genre Class
GenreCollection Members
Microsoft.Xna.Framework.Media Namespace

Platforms

Xbox 360, Windows 7, Windows Vista, Windows XP, Windows Phone