Vcl.CmAdmCtl.TCOMAdminCatalogCollection.Add

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

function  Add: TCOMAdminCatalogObject;

C++

TCOMAdminCatalogObject* __fastcall Add();

Properties

Type Visibility Source Unit Parent
function public
Vcl.CmAdmCtl.pas
Vcl.CmAdmCtl.hpp
Vcl.CmAdmCtl TCOMAdminCatalogCollection

Description

Adds a new item to the end of the collection.

Call the Add method to create a new object in a collection. Add returns the TCOMAdminCatalogObject that represents the new item.

Not all collections allow you to add items. Check the AddEnabled property before trying to call Add. To install or create objects in collections where AddEnabled is false, use the catalog utility interfaces.

Note: Add does not commit the change to the catalog data store. To cause the new item to be written to the data store, call the SaveChanges method.

See Also