BackgroundAudioPlayer.Close Method

[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]

Closes the player and removes all resources reserved for it, including the current AudioTrack.

Namespace:  Microsoft.Phone.BackgroundAudio
Assembly:  Microsoft.Phone (in Microsoft.Phone.dll)

Syntax

Public Sub Close
public void Close()

Remarks

If any other members of BackgroundAudioPlayer are called or accessed after Close()()() has been called, they throw an exception.

Version Information

Windows Phone OS

Supported in: 8.1, 8.0, 7.1

Platforms

Windows Phone

See Also

Reference

BackgroundAudioPlayer Class

Microsoft.Phone.BackgroundAudio Namespace