IPortableDeviceValues::GetCount 方法

GetCount方法會擷取集合中的專案數。

語法

HRESULT GetCount(
  [in] DWORD *pcelt
);

參數

pcelt [in]

包含集合中專案數的 DWORD 指標。

傳回值

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

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

規格需求

需求
標頭
PortableDeviceTypes.h
程式庫
PortableDeviceGUIDs.lib

另請參閱

IPortableDeviceValues 介面