Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

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

Community Additions

Show:
© 2017 Microsoft