Share via


IWMPPlaylist::count 屬性

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

count屬性會取得播放清單中的媒體專案數目。

這個屬性是唯讀的。

Syntax

public System.Int32 count {get;}

Public ReadOnly Property count As System.Int32

屬性值

System.Int32,這是播放清單中的媒體專案數目。

備註

使用這個屬性之前,您必須具有程式庫的讀取權限。 如需詳細資訊,請參閱 程式庫存取

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

規格需求

需求
版本
Windows 媒體播放機 9 系列或更新版本
命名空間
WMPLib
組件
Interop.WMPLib.dll (Interop.WMPLib.dll.dll)

另請參閱

IWMPPlaylist 介面 (VB 和 C#)