Windows Media Player 11 SDK IWMPPlaylist Interface (VB and C#) 

Windows Media Player SDK banner art

Previous Next

IWMPPlaylist Interface (VB and C#)

Provides properties and methods to organize, manage, and manipulate media items in a playlist.

The IWMPPlaylist interface exposes the following properties.

Property Description
attributeCount Gets the number of attributes associated with a playlist.
attributeName Gets the name of a playlist attribute specified by an index. In C# this is the get_attributeName method.
count Gets the number of media items in a playlist.
isIdentical Gets a value indicating whether the specified playlist is identical to the current playlist. In C# this is the get_isIdentical method.
Item Gets an interface to the media item at the specified index. In C# this is the get_Item method.
name Gets or sets the name of the playlist.

The IWMPPlaylist interface exposes the following methods.

Method Description
appendItem Adds a media item to the end of the playlist.
clear Reserved for future use.
getItemInfo Returns the value of a playlist attribute specified by name.
insertItem Inserts a media item at a specified location in a playlist.
moveItem Changes the location of a media item in the playlist.
removeItem Removes the specified media item from the playlist.
setItemInfo Sets the value of a playlist attribute.

Get an IWMPPlaylist interface by using the following properties or methods accessed through the following object or interface.

Object or interface Property or method
IWMPCdrom Playlist
IWMPMediaCollection getAll, getByAlbum, getByAttribute, getByAuthor, getByGenre, getByName
AxWindowsMediaPlayer currentPlaylist, newPlaylist
IWMPPlaylistArray Item
IWMPPlaylistCollection newPlaylist

See Also

Previous Next