Item Property
Collapse the table of content
Expand the table of content

AlbumCollection.Item Property

Gets the Album at the specified index in the AlbumCollection.

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

public Album this [
         int index
] { get; }

Property Value

A new Album representing the album at the specified index in this AlbumCollection.

Each call returns a new Album instance.

Album resources such as art and thumbnails are cached in each Album instance. Retrieving and maintaining references to multiple instances of the same album, and accessing art or thumbnails on each of those instances, creates multiple copies of the art or thumbnails. Because large numbers of album art textures can consume considerable memory, it is not advisable to hold a large number of Album objects on which GetAlbumArt has been called.

Xbox 360, Windows XP SP2, Windows Vista, Zune

Community Additions

© 2015 Microsoft