Assembly: Microsoft.Xna.Framework (in microsoft.xna.framework.dll)
The AlbumCollection class provides access to albums in the device's media library.
Use the MediaLibrary.Albums property to obtain a collection of all albums in the media library, the Artist.Albums property to obtain a collection of albums associated with a particular artist, and the Genre.Albums property to obtain a collection of albums associated with a particular genre.
The AlbumCollection does not immediately instantiate instances of all albums in the collection. Instead, individual Album objects are created each time an album is accessed through the collection's Item indexer. See the Remarks section of Item for the resource implications of maintaining references to multiple Album objects.