Share via


Playlist.attributeName

[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.]

The attributeName property retrieves the name of an attribute at a specified index.

Syntax

player.currentPlaylist.attributeName( index )

Parameters

index

Number (long) containing the index.

Possible Values

This property is a read-only String.

Remarks

The number of attributes is retrieved by the attributeCount property. Given an index, attributeName returns a String that can be used in conjunction with setItemInfo or getItemInfo to specify or retrieve a value for the attribute.

To retrieve the value of this property, read access to the library is required. For more information, see Library Access.

For information about the attributes supported by Windows Media Player, see the Windows Media Player Attribute Reference.

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

Requirements

Requirement Value
Version
Windows Media Player version 7.0 or later.
DLL
Wmp.dll

See also

Playlist Object

Playlist.attributeCount

Playlist.getItemInfo

Playlist.setItemInfo

Settings.mediaAccessRights

Settings.requestMediaAccessRights