Share via


PlaylistCollection Class

A collection of playlists in the media library.

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

Syntax

public sealed class PlaylistCollection : IEnumerable<Playlist>, IEnumerable, IDisposable

Remarks

The PlaylistCollection class provides access to playlists in the device's media library.

Use the MediaLibrary.Playlists property to obtain a collection of all playlists in the media library.

The PlaylistCollection does not immediately instantiate instances of all playlists in the collection. Instead, individual Playlist objects are created each time a playlist is accessed through the collection's Item indexer.

See Also

Reference

MediaLibrary.Songs Property
Song Class
PlaylistCollection Members
Microsoft.Xna.Framework.Media Namespace

Platforms

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