「API:System.Win.ComObj.TAutoObject.CreateFromFactory」の版間の差分

提供: RAD Studio API Documentation
移動先: 案内検索
(ページの作成: <section begin=api /> <!--Start API Info--><ul id='childlinks'><li class='first'>'''親: TAutoObject'''</li> </ul> <vclInfo name="CreateFromFact...)
 
 
1行目: 1行目:
<section begin=api />
+
<section begin="api" />
 
<!--Start API Info--><ul id='childlinks'><li class='first'>'''[[System.Win.ComObj.TAutoObject|親: TAutoObject]]'''</li>
 
<!--Start API Info--><ul id='childlinks'><li class='first'>'''[[System.Win.ComObj.TAutoObject|親: TAutoObject]]'''</li>
 
</ul>
 
</ul>
7行目: 7行目:
 
<span class="lang">Delphi</span>
 
<span class="lang">Delphi</span>
 
<div class="thesig"><source lang="delphi">
 
<div class="thesig"><source lang="delphi">
constructor CreateFromFactory(Factory: TComObjectFactory; const Controller: IUnknown);
+
constructor CreateFromFactory(Factory: TComObjectFactory;
 +
const Controller: IUnknown);
 
</source></div>
 
</source></div>
 
</div>
 
</div>
28行目: 29行目:
 
</tr>
 
</tr>
 
</table>
 
</table>
<section end=api />
+
<section end="api" />
 
==説明==
 
==説明==
<span class="short"><section begin=short />{{#lst:System.Win.ComObj.TTypedComObject.CreateFromFactory|short}}<section end=short/></span>
+
<span class="short"><section begin="short" />{{#lst:System.Win.ComObj.TTypedComObject.CreateFromFactory|short}}<section end="short"/></span>
 
{{#lsth:System.Win.ComObj.TTypedComObject.CreateFromFactory|説明}}
 
{{#lsth:System.Win.ComObj.TTypedComObject.CreateFromFactory|説明}}

2022年5月21日 (土) 05:59時点における最新版

Delphi

constructor CreateFromFactory(Factory: TComObjectFactory;
const Controller: IUnknown);

プロパティ

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

説明

COM オブジェクトをインスタンス化し、その値を初期化します。

COM オブジェクトをインスタンス化し、その値を初期化します。

System.Win.ComObj.TAutoObject.CreateFromFactory は System.Win.ComObj.TComObject.CreateFromFactory を継承しています。以下の内容はすべて System.Win.ComObj.TComObject.CreateFromFactory を参照しています。

COM オブジェクトをインスタンス化し、その値を初期化します。

Create を呼び出すと、実行時に、集合の一部には属さない形で COM オブジェクトをインスタンス化することができます。

Create は、COM オブジェクトのためのメモリを確保し、その後、次のようにプロパティ群を初期化します:

  • RefCount を 1 に。新たに作成されたオブジェクトが参照カウント 0 の状態でパラメータに渡される場合のために、人為的な参照カウント操作の手段として設定します。
  • FactoryFactory パラメータに。これは、オブジェクトの作成を担当するクラス ファクトリのインスタンスです。
  • ControllerController パラメータに。これは、オブジェクトが集合の一部の場合にはコントロール オブジェクトであり、そうでなければ nil となります。

COM サーバー上で呼び出し、それに応じてオブジェクトの参照カウントをインクリメントします。

Initialize を呼び出します。

人工的にインクリメントされた RefCount をデクリメントします。

関連項目