Share via


Windows Media Player 11 SDK IWMPPlaylistCollection.importPlaylist (VB and C#) 

Windows Media Player SDK banner art

Previous Next

IWMPPlaylistCollection.importPlaylist (VB and C#)

The importPlaylist method adds a static playlist to the library.

  

Parameters

pItem

A WMPLib.IWMPPlaylist interface for the playlist that this method will add.

Return Value

A WMPLib.IWMPPlaylist interface for the added playlist.

Remarks

Playlists that do not contain any media items cannot be added to the library by using this method. To create an empty playlist in the library, use the newPlaylist method. You can then fill the resulting playlist with media items by using IWMPPlaylist.appendItem or IWMPPlaylist.insertItem.

If you pass this method an auto playlist, the query is executed once and the result is added to the library as a static playlist. To add an auto playlist to the library and preserve its automatic behavior, use IWMPMediaCollection.add. For more information, see Static and Auto Playlists.

Before calling this method, you must have read access to the library. For more information, see Library Access.

Requirements

Version: Windows Media Player 9 Series or later.

Namespace: WMPLib

Assembly: Interop.WMPLib.dll (automatically generated by Visual Studio)

See Also

Previous Next