Share via


ICollectionOnSTLImpl::get__NewEnum

Returns an enumerator object for the collection.

STDMETHOD(get__NewEnum)(
   IUnknown** ppUnk 
);

Parameters

  • ppUnk
    [out] The IUnknown pointer of a newly created enumerator object.

Return Value

A standard HRESULT value.

Remarks

The newly created enumerator maintains an iterator on the original collection, m_coll, (so no copy is made) and holds a COM reference on the collection object to ensure that the collection remains alive while there are outstanding enumerators.

Requirements

Header: atlcom.h

See Also

Reference

ICollectionOnSTLImpl Class

Concepts

ATL Collections and Enumerators

Other Resources

ICollectionOnSTLImpl Members