IEnumVARIANT::Reset
Resets the enumeration sequence to the beginning.
Return Value
The SCODE obtained from the returned HRESULT is one of the following:
SCODE
| Meaning
|
S_OK
| Success
|
S_FALSE
| Failure
|
Comments
There is no guarantee that exactly the same set of variants will be enumerated
the second time as was enumerated the first. Although an exact duplicate is
desirable, the outcome depends on the collection being enumerated. Some
collections (for example, an enumeration of the files in a directory) will find it
impractical to maintain this condition.
Example
The following code implements
IEnumVariant::Reset for collections in the Lines sample (ENUMVAR.CPP):
STDMETHODIMP
CEnumVariant::Reset()
{
m_lCurrent = m_lLBound;
return NOERROR;
}
- Software for developers
-
Delphi Components
.Net Components
Software for Android Developers
- More information resources
-
MegaDetailed.Net
Unix Manual Pages
Delphi Examples
- Databases for Amazon shops developers
-
Amazon Categories Database
Browse Nodes Database