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)
Syntax
public Album this [
int index
] { get; }
Property Value
A new Album representing the album at the specified index in this AlbumCollection.
Remarks
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.
See Also
Reference
Album.GetAlbumArt Method
AlbumCollection Class
AlbumCollection Members
Microsoft.Xna.Framework.Media Namespace
Platforms
Xbox 360, Windows XP SP2, Windows Vista, Zune