Share via


Windows Media Player 11 SDK Playlist.setItemInfo 

Windows Media Player SDK banner art

Previous Next

Playlist.setItemInfo

The setItemInfo method specifies the value of a playlist attribute.

Syntax

  

Parameters

name

String containing the name of the attribute to be set. For information about the attributes supported by Windows Media Player, see the Windows Media Player Attribute Reference.

value

String containing the new value for the attribute.

Return Values

This method does not return a value.

Remarks

A special use of the setItemInfo method is to sort the items in the playlist by using the SortAttribute attribute. The following JScript example sorts a playlist by the values of the UserLastPlayedTime attribute. The variable playlist is a reference to a Playlist object.

  

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

Windows Media Player 10 Mobile: This method is not supported.

Example

See the attributeCount property for example code that uses this property.

Requirements

Version: Windows Media Player version 7.0 or later.

Library: Use wmp.dll.

See Also

Previous Next