Plays a .wav sound file.
| C# | Visual Basic |
public void Play( string location, AudioPlayMode playMode )
Public Sub Play ( _ location As String, _ playMode As AudioPlayMode _ )
- location (String)
- A String containing the name of the sound file.
- playMode (AudioPlayMode)
- AudioPlayMode Enumeration mode for playing the sound. By default, AudioPlayMode.Background.
On Windows Phone 7 the location string must match a relative path within your application package
- this method cannot currently be used to play a file located in Isolated Storage.