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)

Syntax

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

Remarks

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.

See Also

Reference

PictureAlbum.Albums Property
MediaLibrary.RootPictureAlbum Property
PictureAlbum Class
PictureAlbumCollection Members
Microsoft.Xna.Framework.Media Namespace

Platforms

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