From RAD Studio API Documentation
Jump to: navigation, search


constructor CreateAggregated(const Controller: IUnknown);


Type Visibility Source Unit Parent
constructor public System.Win.ComObj.pas System.Win.ComObj TTypedComObject


Instantiates a COM object that is part of an aggregate.

System.Win.ComObj.TTypedComObject.CreateAggregated inherits from System.Win.ComObj.TComObject.CreateAggregated. All content below this line refers to System.Win.ComObj.TComObject.CreateAggregated.

Instantiates a COM object that is part of an aggregate.

Call CreateAggregated to instantiate a COM object that is part of an aggregate by passing it the IUnknown control object as the Controller parameter.

CreateAggregated allocates memory for a COM object and then calls the CreateFromFactory constructor. Because the newly instantiated COM object is part of an aggregate, CreateAggregated passes Controller to CreateFromFactory as its Controller parameter. Controller also becomes the value of the Controller property of the COM object.

See Also