GetAt Method

Retrieves the item at the specified index from the collection.

HRESULT GetAt(
[in]  const DWORD dwIndex,
[in, out]  PROPVARIANT* pValue
);

Parameters

dwIndex

[in] DWORD that contains the zero-based index of the item to retrieve.

pValue

[in, out] Address of a PROPVARIANT variable that receives the value.

Return Value

This method returns an HRESULT. Possible values include, but are not limited to, those in the following table.

Value Description

S_OK

The method succeeded.

Requirements

Requires Windows 7.