Share via


IWMPPlaylistCollection (VB and C#) interface

[The feature associated with this page, Windows Media Player SDK, is a legacy feature. It has been superseded by MediaPlayer. MediaPlayer has been optimized for Windows 10 and Windows 11. Microsoft strongly recommends that new code use MediaPlayer instead of Windows Media Player SDK, when possible. Microsoft suggests that existing code that uses the legacy APIs be rewritten to use the new APIs if possible.]

Provides methods for manipulating IWMPPlaylist and IWMPPlaylistArray interfaces in a collection.

Members

The IWMPPlaylistCollection (VB and C#) interface has these types of members:

Methods

The IWMPPlaylistCollection (VB and C#) interface has these methods.

Method Description
getAll Returns an IWMPPlaylistArray interface that provides access to all of the playlists in the library.
getByName Returns an IWMPPlaylistArray interface that provides access to playlists with the specified name, if any exist.
importPlaylist Adds a static playlist to the library.
isDeleted Returns a value indicating whether the specified playlist is in the deleted items folder.
newPlaylist Returns an IWMPPlaylist interface for a new, empty playlist in the library.
remove Removes a playlist from the library.
setDeleted No longer supported.

Get an IWMPPlaylistCollection interface by using the following property.

Object Property
AxWindowsMediaPlayer Object playlistCollection

Requirements

Requirement Value
Header
Wmp.h

See also

Interfaces for Visual Basic .NET and C#

IWMPPlaylist Interface (VB and C#)

IWMPPlaylistArray Interface (VB and C#)