Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

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

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 XP SP2, Windows Vista, Zune

Community Additions

© 2015 Microsoft