次の方法で共有


PlaylistCollection.Item Property

Gets the Playlist at the specified index in the PlaylistCollection.

Syntax

'Declaration
Public ReadOnly Property Item ( _
         index As Integer _
) As Playlist 
public Playlist this [
         int index
] { get; }
public:
property Playlist default [Int32] {
         Playlist get (int index);
}

Property Value

Type: Playlist
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.

Requirements

Namespace: Microsoft.Xna.Framework.Media

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

See Also

Reference

PlaylistCollection Class
PlaylistCollection Members
Microsoft.Xna.Framework.Media Namespace

Platforms

Windows Phone