Share via


Windows Media Player 11 SDK PlaylistCollection.getByName 

Windows Media Player SDK banner art

Previous Next

PlaylistCollection.getByName

The getByName method retrieves a PlaylistArray object containing playlists with the specified name, if any exist.

Syntax

  

Parameters

name

String containing the name of the playlists to be retrieved.

Return Values

This method returns a PlaylistArray object.

Remarks

Use PlaylistArray**.count** to determine whether a playlist exists. If count is zero, a playlist does not exist.

To use this method, read access to the library is required. For more information, see Library Access.

Example Code

The following JScript example uses playlistCollection.getByName to check the playlistCollection object for a playlist named "ThreeList". If the "Threelist" playlist exists, getByName sets "ThreeList" as the current playlist. The Player object was created with the ID = "Player".

  

Requirements

Version: Windows Media Player version 7.0 or later.

Library: Use wmp.dll.

See Also

Previous Next