This documentation is archived and is not being maintained.

DECLARE_AGGREGATABLE 

Specifies that your object can be aggregated.


DECLARE_AGGREGATABLE( 
      x  
)

Parameters

x

[in] The name of the class you are defining as aggregatable.

CComCoClass contains this macro to specify the default aggregation model. To override this default, specify either the DECLARE_NOT_AGGREGATABLE or DECLARE_ONLY_AGGREGATABLE macro in your class definition.

class CMyClass : public CComCoClass< .. >, ...
{
public:
   DECLARE_NOT_AGGREGATABLE(CMyClass)
   ...
};
Show: