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.

Xbox 360, Windows 7, Windows Vista, Windows XP, Windows Phone

Community Additions