How to delete a windows media playlist programmatically
问题 I am using a C# application where I have to create a playlist. At the end of this application on form close I want to delete this play list which has been created. How do I do this? what I want is WMP.playlistCollection.remove("myplaylist"); This is wrong and does not work. Is there something similar? 回答1: you need to give Playlist object as the parameter IWMPPlaylistArray plCollection = WMP.playlistCollection.getByName("myplaylist"); if (plCollection.count > 0) { IWMPPlaylist pl =