Export (0) Print
Expand All

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

Community Additions

ADD
Show:
© 2014 Microsoft