IPortableDevicePropVariantCollection::RemoveAt 方法

RemoveAt方法會移除儲存在指定索引所指定位置的專案。

語法

HRESULT RemoveAt(
  [in] const DWORD dwIndex
);

參數

dwIndex [in]

指定要移除之專案的索引。

傳回值

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

傳回碼 描述
S_OK
此方法已成功。
E_INVALIDARG
指定的索引超出範圍。

備註

您必須指定以零起始的索引。

規格需求

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

另請參閱

IPortableDevicePropVariantCollection 介面