Share via


Windows Media Player 11 SDK MediaCollection.getByName 

Windows Media Player SDK banner art

Previous Next

MediaCollection.getByName

The getByName method retrieves a playlist of the media items with the specified name.

Syntax

  

Parameters

name

String containing the name.

Return Values

This method returns a Playlist object.

Remarks

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

Example Code

The following JScript example uses *MediaCollection.*getByName to retrieve three items from the library. Each item is then appended to the current playlist. The Player object was created with ID="Player".

  

Requirements

Version: Windows Media Player version 7.0 or later.

Library: Use wmp.dll.

See Also

Previous Next