Deletes the specified song from the specified MediaLibrary
, after prompting for confirmation.
public static void Delete (
- Type: MediaLibrary
The media library from which the song is to be deleted.
- Type: Song
The song to be deleted.
The deletion performed by this method cascades to related items.
For example, if the deleted song was the last song for an album or artist,
then the related album or artist is also deleted.
Capabilities for Windows Phone
If you use this API in your Windows Phone app, you must specify the following capabilities in the app manifest. Otherwise, your app might not work correctly or it might exit unexpectedly.
|ID_CAP_MEDIALIB_AUDIO||Windows Phone 8, Windows Phone OS 7.1|
For more info, see App capabilities and hardware requirements for Windows Phone.
- Namespace: Microsoft.Xna.Framework.Media.PhoneExtensions
Microsoft.Xna.Framework.Media.PhoneExtensions (in microsoft.xna.framework.media.phoneextensions.dll)