次の方法で共有


MediaPlayer.Play Method (SongCollection)

Plays a SongCollection.

Syntax

'Declaration
Public Shared Sub Play ( _
         songs As SongCollection _
)
public static void Play (
         SongCollection songs
)
public:
static void Play(
         SongCollection songs
)

Parameters

Exceptions

Exception type Condition
ArgumentException Play cannot be used when the song collection count is zero.
ArgumentNullException songs is null.

Remarks

Play clears the current playback queue, and then queues up the specified song collection for playback. It begins with the first song in the collection. Playback starts immediately at the beginning of the song.

Requirements

Namespace: Microsoft.Xna.Framework.Media

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

See Also

Tasks

Playing a Song

Reference

MediaPlayer.Play Method
MediaPlayer Class
MediaPlayer Members
Microsoft.Xna.Framework.Media Namespace

Platforms

Windows Phone