IPortableDevicePropVariantCollection::GetType 方法

GetType方法會擷取集合中專案的資料類型。

語法

HRESULT GetType(
  [out] VARTYPE *pvt
);

參數

pvt [out]

Platform SDK VARTYPE 列舉值,指出集合中所有專案的資料類型。

傳回值

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

傳回碼 描述
S_OK
此方法已成功。
E_POINTER
必要的指標引數為 Null

備註

儲存在 IPortableDevicePropVariantCollection 中的所有專案都是相同的類型。

規格需求

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

另請參閱

IPortableDevicePropVariantCollection 介面