API:System.Win.ComObj.TAutoObjectFactory.Create

De RAD Studio API Documentation
Aller à : navigation, rechercher

Delphi

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

C++

__fastcall TAutoObjectFactory(TComServerObject* ComServer, TAutoClass AutoClass, const GUID &ClassID, TClassInstancing Instancing, TThreadingModel ThreadingModel);

Propriétés

Type Visibilité  Source Unité  Parent
constructor public
System.Win.ComObj.pas
System.Win.ComObj.hpp
System.Win.ComObj TAutoObjectFactory

Description

Instancie un objet TTypedComObjectFactory.

System.Win.ComObj.TAutoObjectFactory.Create hérite de System.Win.ComObj.TTypedComObjectFactory.Create. Tout le contenu en-dessous de cette ligne se réfère à System.Win.ComObj.TTypedComObjectFactory.Create.

Instancie un objet TTypedComObjectFactory.

Create est utilisé pour instancier un objet TTypedComObjectFactory. Create est appelé automatiquement au chargement d'un serveur COM contenant la définition de classe d'un TTypedComObject. Les fabricants de classe doivent être instanciés dans la section initialisation de l'unité contenant leur serveur associé.

Create alloue la mémoire de TTypedComObjectFactory, puis vérifie l'existence et la disponibilité d'une bibliothèque de types avant d'appeler la méthode héritée Create. Si la bibliothèque de types n'est pas disponible, une exception EOleSysError est déclenchée.

Voir aussi