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
COM
id
in
int
odl
out
ptr
ref
Expand Minimize

aggregatable attribute

The [aggregatable] attribute indicates that the class supports aggregation.


[
   coclass-attribute-list,
   aggregatable
]
coclass coclass-name
{
   coclass-interface-list
}

Parameters

coclass-attribute-list

Other attributes that apply to the class.

coclass-name

The name of the class.

coclass-interface-list

A list of interfaces for the class.

Remarks

Use the [aggregatable] attribute on a coclass statement to let users know that the class supports aggregations. That is, the class allows its interfaces to be exposed by a container class as if these interfaces were the container's own interfaces.

The typeflag representation for this attribute is TYPEFLAG_FAGGREGATABLE.

Examples

[
    uuid(1e196b20-1f3c-1069-996b-00dd010fe676),
    aggregatable
]
coclass Form
{
    [default] interface IForm;
    [default, source] interface IFormEvents;
}

See also

coclass
Generating a Type Library With MIDL
ODL File Example
ODL File Syntax

 

 

Community Additions

ADD
Show:
© 2015 Microsoft