Partager via


IWMPPlaylist (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 properties and methods to organize, manage, and manipulate media items in a playlist.

The IWMPPlaylist interface exposes the following properties.

Members

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

Methods

The IWMPPlaylist (VB and C#) interface has these 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.

Properties

The IWMPPlaylist (VB and C#) interface has these properties.

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

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

Requirements

Requirement Value
Header
Wmp.h

See also

Interfaces for Visual Basic .NET and C#