System.Win.ComObj.TComObjectFactory.Create

提供: RAD Studio API Documentation
移動先: 案内検索

Delphi

constructor Create(ComServer: TComServerObject; ComClass: TComClass;
const ClassID: TGUID; const ClassName, Description: string;
Instancing: TClassInstancing; ThreadingModel: TThreadingModel = tmSingle);

C++

__fastcall TComObjectFactory(TComServerObject* ComServer, TComClass ComClass, const GUID &ClassID, const System::UnicodeString ClassName, const System::UnicodeString Description, TClassInstancing Instancing, TThreadingModel ThreadingModel);

プロパティ

種類 可視性 ソース ユニット
constructor public
System.Win.ComObj.pas
System.Win.ComObj.hpp
System.Win.ComObj TComObjectFactory

説明

クラスファクトリオブジェクトをインスタンス化します。

Create メソッドは通常,サーバーがロードされるときに,クラスファクトリをインスタンス化します。クラスファクトリをサーバーのロード時に自動的に使用可能にするように,クラスファクトリはその関連付けられたサーバーを含むユニットの initialization セクションでインスタンス化しなければなりません。

Create はクラスファクトリオブジェクトのメモリを割り当て,そのオブジェクトを ComClassManager の管理するクラスファクトリリストに追加します。次に,Create は渡された値を使って以下のプロパティを初期化します。

関連項目