Windows apps
Collapse the table of content
Expand the table of content
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

GenreCollection Class

The collection of all genres in the media library.

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

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.

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

Windows Phone

Community Additions

© 2017 Microsoft