API:System.Win.ComObj.TTypedComObjectFactory.Create

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

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);

プロパティ

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

説明

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

System.Win.ComObj.TTypedComObjectFactory.Create は System.Win.ComObj.TComObjectFactory.Create を継承しています。以下の内容はすべて System.Win.ComObj.TComObjectFactory.Create を参照しています。

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

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

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

関連項目