Datasnap.DSSession.TDSSessionCache.AddItem

From RAD Studio API Documentation
Jump to: navigation, search

[–] Properties
Type: function
Visibility: public
Source:
Datasnap.DSSession.pas
Datasnap.DSSession.hpp
Unit: Datasnap.DSSession
Parent: TDSSessionCache

Delphi

function AddItem(Item: TResultCommandHandler): Integer;

C++

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

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