System.Win.ComObj.TAutoObject.Create
Delphi
constructor Create;
C++
__fastcall TAutoObject();
__fastcall TAutoObject(const System::_di_IInterface Controller);
__fastcall TAutoObject(TComObjectFactory* Factory, const System::_di_IInterface Controller);
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
constructor | public | System.Win.ComObj.pas System.Win.ComObj.hpp |
System.Win.ComObj | TAutoObject |
Description
Instantiates a COM object that is not part of an aggregate.
System.Win.ComObj.TAutoObject.Create inherits from System.Win.ComObj.TComObject.Create. All content below this line refers to System.Win.ComObj.TComObject.Create.
Instantiates a COM object that is not part of an aggregate.
Call Create to instantiate a COM object that is not part of an aggregate, at runtime.
Create allocates memory for a COM object, and then directly calls the CreateFromFactory constructor, passing it nil as the Controller parameter to indicate that the COM object is not being created as part of an aggregate.