Playlist.attributeName

[與此頁面相關聯的功能Windows 媒體播放機 SDK是舊版功能。 MediaPlayer已取代它。 MediaPlayer已針對Windows 10和Windows 11進行優化。 Microsoft 強烈建議新程式碼盡可能使用MediaPlayer,而不是Windows 媒體播放機 SDK。 Microsoft 建議使用舊版 API 的現有程式碼盡可能重寫為使用新的 API。

attributeName屬性會擷取指定索引處的屬性名稱。

Syntax

播放機currentPlaylistattributeName ( 索引 )

參數

index

包含 索引 () 的數位。

可能的值

此屬性是唯讀 的 String

備註

attributeCount屬性會擷取屬性數目。 指定索引時, attributeName 會傳回 String ,可與 setItemInfogetItemInfo 搭配使用,以指定或擷取屬性的值。

若要擷取這個屬性的值,需要程式庫的讀取權限。 如需詳細資訊,請參閱 程式庫存取

如需Windows 媒體播放機所支援屬性的相關資訊,請參閱Windows 媒體播放機屬性參考

如需使用此屬性的範例程式碼,請參閱 attributeCount 屬性。

規格需求

需求
版本
Windows 媒體播放機 7.0 版或更新版本。
DLL
Wmp.dll

另請參閱

Playlist 物件

Playlist.attributeCount

Playlist.getItemInfo

Playlist.setItemInfo

Settings.mediaAccessRights

Settings.requestMediaAccessRights