PlaylistCollection.Item Property

Gets the Playlist at the specified index in the PlaylistCollection.

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

public Playlist this [
         int index
] { get; }

Property Value

A new Playlist representing the playlist at the specified index in this PlaylistCollection.

Each call returns a new Playlist instance.

The SongCollection returned by Songs is allocated and cached by each Playlist instance. Retrieving and maintaining references to multiple instances of the same playlist, and then accessing the song collection on each of those instances, creates multiple copies of the song collection.

Xbox 360, Windows XP SP2, Windows Vista, Zune

Community Additions

ADD
Show: