Skip method

Skips over the next specified number of elements.

Syntax


HRESULT retVal = object.Skip(cElt);

Parameters

cElt [in]

Type: unsigned long

An integer that specifies the number of elements to skip over. The cElt parameter is a ULONG; therefore, you cannot pass a negative number to go backward.

Remarks

When you reach the end of the enumeration, the cursor remains there. To return to the beginning of the enumeration, you must call IEnumTravelLogEntry::Reset.

If you request more elements than exist in the sequence between the current element and the end, the method gets the remaining elements and returns S_FALSE. The cursor stays at the end of the enumeration.

 

 

Show: