|Important||This document may not represent best practices for current development, links to downloads and other resources may no longer be valid. Current recommended version can be found here. ArchiveDisclaimer|
This class implements IUnknown for an aggregated object.
template< class contained > class CComAggObject : public IUnknown, public CComObjectRootEx < contained::_ThreadModel::ThreadModelNoCS >
CComAggObject implements IUnknown for an aggregated object. CComAggObject has its own IUnknown, separate from the outer object's IUnknown, and maintains its own reference count.
CComAggObject uses CComContainedObject to delegate to the outer unknown.
For more information about aggregation, see the article Fundamentals of ATL COM Objects.