System.Win.VCLCom.TComponentFactory.Create

De RAD Studio API Documentation
Aller à : navigation, rechercher

Delphi

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

C++

__fastcall TComponentFactory(System::Win::Comobj::TComServerObject* ComServer, System::Classes::TComponentClass ComponentClass, const GUID &ClassID, System::Win::Comobj::TClassInstancing Instancing, System::Win::Comobj::TThreadingModel ThreadingModel);

Propriétés

Type Visibilité  Source Unité  Parent
constructor public
System.Win.VCLCom.pas
System.Win.VCLCom.hpp
System.Win.VCLCom TComponentFactory

Description

Instancie une instance d'un objet TComponentFactory.

Create alloue la mémoire de l'objet TComponentFactory puis appelle la méthode héritée Create, en lui transmettant ses paramètres dans le même ordre. Le paramètre ComponentClass est passé transtypé en TAutoClass et transmis par le paramètre AutoClass.

Voir aussi