API:System.Win.ComObj.TTypedComObjectFactory.Create

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

constructor Create(ComServer: TComServerObject;
TypedComClass: TTypedComClass; const ClassID: TGUID;
Instancing: TClassInstancing; ThreadingModel: TThreadingModel = tmSingle);

C++

__fastcall TTypedComObjectFactory(TComServerObject* ComServer, TTypedComClass TypedComClass, const GUID &ClassID, TClassInstancing Instancing, TThreadingModel ThreadingModel);

Properties

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

Description

Instantiates a class factory object.

System.Win.ComObj.TTypedComObjectFactory.Create inherits from System.Win.ComObj.TComObjectFactory.Create. All content below this line refers to System.Win.ComObj.TComObjectFactory.Create.

Instantiates a class factory object.

Create instantiates a class factory, usually when the server is loaded. Class factories should be instantiated in the initialization section of the unit that includes their associated server, so that they are automatically available when the server is loaded.

Create allocates memory for a class factory object, and adds the object to the class factory list managed by the ComClassManager. Then Create initializes the following properties with values passed to it:

See Also