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)
Syntax
public Playlist this [
int index
] { get; }
Property Value
A new Playlist representing the playlist at the specified index in this PlaylistCollection.
Remarks
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.
See Also
Reference
PlaylistCollection Class
PlaylistCollection Members
Microsoft.Xna.Framework.Media Namespace
Platforms
Xbox 360, Windows XP SP2, Windows Vista, Zune