MediaPlayer.Play Method (Song)
Plays a Song.
Syntax
'Declaration
Public Shared Sub Play ( _
song As Song _
)
public static void Play (
Song song
)
public:
static void Play(
Song song
)
Parameters
Exceptions
Exception type | Condition |
---|---|
ArgumentNullException | song is null. |
InvalidOperationException | Song playback failed. |
Remarks
Play clears the current playback queue, and then queues up the specified song for playback. 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
Reference
MediaPlayer.Play Method
MediaPlayer Class
MediaPlayer Members
Microsoft.Xna.Framework.Media Namespace
Platforms
Windows Phone