IADsPropertyList::Item

Gets an item from the property list.

HRESULT Item(
  VARIANT varIndex,  //Index or name of requested property
  VARIANT * pVariant //Value of requested property
);
 

Parameters

[in] varIndex
Index or name of the requested property.
[out] pVariant
Address of a method-allocated VARIANT variable containing the value of the property.

Return Values

This method returns the standard values E_INVALIDARG, E_OUTOFMEMORY, E_UNEXPECTED, and E_FAIL, as well as the following:

S_OK
The item was obtained.

Remarks

The caller is responsible for freeing the VARIANT variable allocated by Item.