Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

CComContainedObject Class

This class implements IUnknown by delegating to the owner object's IUnknown.

template<
   class Base 
>
class CComContainedObject :
   public Base

Parameters

Base
Your class, derived from CComObjectRoot or CComObjectRootEx.

Remarks

ATL uses CComContainedObject in classes CComAggObject, CComPolyObject, and CComCachedTearOffObject. CComContainedObject implements IUnknown by delegating to the owner object's IUnknown. (The owner is either the outer object of an aggregation, or the object for which a tear-off interface is being created.) CComContainedObject calls CComObjectRootEx's OuterQueryInterface, OuterAddRef, and OuterRelease, all inherited through Base.

Requirements

Header: atlcom.h

See Also

Class Members | ATL Class Overview

Show:
© 2015 Microsoft