Datasnap.Win.ObjBrkr.TServerCollection.Items

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

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

C++

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

Properties

Type Visibility Source Unit Parent
property public
Datasnap.Win.ObjBrkr.pas
Datasnap.Win.ObjBrkr.hpp
Datasnap.Win.ObjBrkr TServerCollection

Description

Lists the TServerItem objects in the collection.

Use Items to access individual TServerItem objects maintained by TServerCollection.

Note: In Delphi, Items is the default property of TServerCollection, so the name of the Items property can be left off when using this property. Thus the line

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

can be written

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

Note: In C++, Items can be accessed using the [] operator, to achieve an affect similar to the default property in Delphi.

See Also