System.Win.ComObj.TComObject.CreateAggregated

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

constructor CreateAggregated(const Controller: IUnknown);

Properties

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

Description

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