Datasnap.DSSession.TDSSessionCache.AddItem

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

function AddItem(Item: TResultCommandHandler): Integer;

C++

int __fastcall AddItem(Data::Dbxcommon::TResultCommandHandler* Item);

Properties

Type Visibility Source Unit Parent
function public
Datasnap.DSSession.pas
Datasnap.DSSession.hpp
Datasnap.DSSession TDSSessionCache

Description

Tries to add the given item to the list of items managed by the cache.

The AddItem method tries to add the given Item to the list of items managed by the cache. If the operation was successful, AddItem returns the unique ID for the item in the cache. If the operation was unsuccessful, -1 is returned.

See Also