次の方法で共有


AlbumCollection Class

A collection of albums in the media library.

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

Syntax

public sealed class AlbumCollection : IEnumerable<Album>, IEnumerable, IDisposable

Remarks

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.

See Also

Reference

MediaLibrary.Albums Property
Artist.Albums Property
Genre.Albums Property
Album Class
AlbumCollection Members
Microsoft.Xna.Framework.Media Namespace

Platforms

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