Skip to main content
Table of Contents

ITMSMCPBaseCollectionIO.AddItem Method

Creates a new item in the collection that corresponds to the given source object and returns it.

API unit family: TMS.MCP.Persistence Declaring type: ITMSMCPBaseCollectionIO

Syntax

TMS.MCP.Persistence.hppPascalC++
function AddItem(const AObject: TObject): TCollectionItem;
virtual System::Classes::TCollectionItem* __fastcall AddItem(System::TObject* const AObject) = 0;

Parameters

Name Description
AObject Source object whose data will populate the new collection item.

Returns

The newly added TCollectionItem that was inserted into the collection.