Playlist.attributeName

[与此页面关联的功能(Windows 媒体播放器 SDK)是旧版功能。 它已被 MediaPlayer 取代。 MediaPlayer 已针对Windows 10和Windows 11进行了优化。 Microsoft 强烈建议新代码尽可能使用 MediaPlayer 而不是 Windows 媒体播放器 SDK。 如果可能,Microsoft 建议重写使用旧 API 的现有代码以使用新 API。]

attributeName 属性检索指定索引处的属性的名称。

语法

玩家currentPlaylistattributeName ( index )

参数

index

包含索引的) (数字

可能的值

此属性是只读 的 String

备注

属性数由 attributeCount 属性检索。 在给定索引的情况下, attributeName 返回一个字符串,该 字符串 可与 setItemInfogetItemInfo 一起使用,以指定或检索特性的值。

若要检索此属性的值,需要对库具有读取访问权限。 有关详细信息,请参阅 库访问

有关 Windows 媒体播放器 支持的属性的信息,请参阅 Windows 媒体播放器 属性参考

有关使用此属性的示例代码,请参阅 attributeCount 属性。

要求

要求
版本
Windows 媒体播放器版本 7.0 或更高版本。
DLL
Wmp.dll

另请参阅

Playlist 对象

Playlist.attributeCount

Playlist.getItemInfo

Playlist.setItemInfo

Settings.mediaAccessRights

Settings.requestMediaAccessRights