IADsPropertyList::Next

Gets the value of the next item in the property list.

HRESULT Next(
  VARIANT * pVariant  //Value of next item
);
 

Parameters

pVariant
[out] Address of a caller-allocated variable that contains the value of the next item in the property list.

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 successfully obtained.
S_FALSE
The current item is the last one in the list. No item was obtained.