Datasnap.Win.ObjBrkr.TServerCollection.Items

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

Delphi

property Items[Index: Integer]: TServerItem read GetItem write SetItem; default;

C++

__property TServerItem* Items[int Index] = {read=GetItem, write=SetItem/*, default*/};

プロパティ

種類 可視性 ソース ユニット
property public
Datasnap.Win.ObjBrkr.pas
Datasnap.Win.ObjBrkr.hpp
Datasnap.Win.ObjBrkr TServerCollection

説明

コレクション内の TServerItem オブジェクトをリストします。

Items を使用すると,TServerCollection で保持されている TServerItem オブジェクトに個別にアクセスできます。

メモ:  Delphi では,ItemsTServerCollection のデフォルトプロパティなので,このプロパティを使用するときは,プロパティ名を省略できます。したがって,次の行は,

TSimpleObjectBroker1.Servers.Items[I].Enabled := False;

この行は,次のように記述できます。

TSimpleObjectBroker1.Servers[I].Enabled := False;

メモ:  C++ では,[] 演算子を使って Items にアクセスし,Delphi におけるデフォルトのプロパティと同様の効果を得ることができます。

関連項目