API:System.Tether.AppProfile.TResourceCollection.Create
Delphi
constructor Create(AOwner: TComponent; ItemClass: TCollectionItemClass);
C++
__fastcall TResourceCollection(System::Classes::TComponent* AOwner, System::Classes::TCollectionItemClass ItemClass);
プロパティ
| 種類 | 可視性 | ソース | ユニット | 親 |
|---|---|---|---|---|
| constructor | public | System.Tether.AppProfile.pas System.Tether.AppProfile.hpp |
System.Tether.AppProfile | TResourceCollection |
説明
Create は,TOwnedCollection のインスタンスを作成および初期化します。 {{#multireplace:System.Tether.AppProfile.TResourceCollection.Create|H21=!|H25=%|H28=(|H29=)|H2A=*|H2B=+|H2F=/|H3C=<|H3D==|H3E=>|H5B=[|H5D=]|H5E=^|H7C=|}} は {{#multireplace:System.Classes.TOwnedCollection.Create|H21=!|H25=%|H28=(|H29=)|H2A=*|H2B=+|H2F=/|H3C=<|H3D==|H3E=>|H5B=[|H5D=]|H5E=^|H7C=|}} を継承しています。以下の内容はすべて {{#multireplace:System.Classes.TOwnedCollection.Create|H21=!|H25=%|H28=(|H29=)|H2A=*|H2B=+|H2F=/|H3C=<|H3D==|H3E=>|H5B=[|H5D=]|H5E=^|H7C=|}} を参照しています。
Create は,TOwnedCollection のインスタンスを作成および初期化します。
Create メソッドは,TPersistent クラスから派生したインスタンスオブジェクトの名前と,下位クラスの TCollectionItem の名前という 2 つのパラメータをとります。1 つめは,TPersistent から派生したインスタンスオブジェクトの名前で,TOwnedCollection インスタンスのオーナーを表します。2 番めのパラメータは,Add メソッドによって作成された項目のクラスを決定します。