Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

AlbumCollection Class

A collection of albums in the media library.

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

public sealed class AlbumCollection : IEnumerable<Album>, IEnumerable

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.

Xbox 360, Windows XP SP2, Windows Vista, Zune
Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.