Datasnap.DSSession.TDSSessionCache.RemoveItem
Delphi
procedure RemoveItem(Item: TResultCommandHandler); overload;
function RemoveItem(ID: Integer; InstanceOwner: Boolean = True): TResultCommandHandler; overload;
C++
void __fastcall RemoveItem(Data::Dbxcommon::TResultCommandHandler* Item)/* overload */;
Data::Dbxcommon::TResultCommandHandler* __fastcall RemoveItem(int ID, bool InstanceOwner = true)/* overload */;
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
procedure function |
public | Datasnap.DSSession.pas Datasnap.DSSession.hpp |
Datasnap.DSSession | TDSSessionCache |
Description
Removes an item from the list of managed items.
The RemoveItem method removes an item from the list of managed items. There are two RemoveItem overloads. The first one removes the given Item from the list while not claiming ownership of the item. The second overload removes the item with the given ID and, if InstanceOwner is set to False, the item is returned, if found. Otherwise, RemoveItem returns nil. If InstanceOwner is set to True, then RemoveItem always returns nil.