다음을 통해 공유


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

Concepts

ICollectionOnSTLImpl Class

ICollectionOnSTLImpl Members

ATL Collections and Enumerators