System.Win.ComObj.TComObjectFactory.ComClass

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

property ComClass: TClass read FComClass;

C++

__property System::TClass ComClass = {read=FComClass};

Properties

Type Visibility Source Unit Parent
property public
System.Win.ComObj.pas
System.Win.ComObj.hpp
System.Win.ComObj TComObjectFactory

Description

Specifies the class type that the factory instantiates.

ComClass is used by the class manager's GetFactoryFromClass method. This method checks the ComClass of each class factory on the server, against the class passed to it, in order to return the class factory that creates objects of that type. It is also used by the CreateComObject method to create the correct COM class.

ComClass is initialized, in the class factory constructor, to the COM class type that is passed to the constructor.

See Also