IMFAttributes::GetCount 方法 (mfobjects.h)

擷取在這個對象上設定的屬性數目。

語法

HRESULT GetCount(
  [out] UINT32 *pcItems
);

參數

[out] pcItems

接收屬性數目。 此參數不得為 NULL。 如果此參數為 NULL,就會發生存取違規。

傳回值

方法會傳回 HRESULT。 可能的值包括 (但不限於) 下表中的這些值。

傳回碼 描述
S_OK
此方法已成功。

備註

若要列舉所有屬性,請針對每個索引值呼叫 IMFAttributes::GetItemByIndex

如果已安裝 Windows Media Format 11 SDK 可轉散發元件,此介面可在下列平臺上使用:

  • Windows XP with Service Pack 2 (SP2) 和更新版本。
  • 已安裝 Windows XP Media Center Edition 2005 KB900325 (Windows XP Media Center Edition 2005) 和 KB925766 (2006 年 10 月更新匯總) 的 Windows XP Media Center Edition 2005。

規格需求

需求
最低支援的用戶端 Windows Vista [傳統型應用程式 |UWP 應用程式]
最低支援的伺服器 Windows Server 2008 [傳統型應用程式 |UWP 應用程式]
目標平台 Windows
標頭 mfobjects.h (包含 Mfidl.h)
程式庫 Mfuuid.lib

另請參閱

屬性和屬性

IMFAttributes