Datasnap.Win.ObjBrkr.TServerCollection.Items

From RAD Studio API Documentation
Jump to: navigation, search

[–] Properties
Type: property
Visibility: public
Source:
Datasnap.Win.ObjBrkr.pas
Datasnap.Win.ObjBrkr.hpp
Unit: Datasnap.Win.ObjBrkr
Parent: TServerCollection

Delphi

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

C++

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

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