This documentation is archived and is not being maintained.

PictureAlbumCollection Class

A collection of picture albums in the media library.

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

public sealed class PictureAlbumCollection : IEnumerable<PictureAlbum>, IEnumerable, IDisposable

The PictureAlbumCollection class provides access to picture albums in the device's media library.

Use the PictureAlbum.Albums property to obtain a collection of picture albums that are contained within (that is, children of) a particular picture album. Use the MediaLibrary.RootPictureAlbum property to obtain the root (top-most) picture album, which contains both pictures and other picture albums.

The PictureAlbumCollection does not immediately instantiate instances of all picture albums in the collection. Instead, individual PictureAlbum objects are created each time a picture album is accessed through the collection's Item indexer.

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