RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TCOMAdminCatalogCollection.Add Method

Adds a new item to the end of the collection.

Pascal
function Add: TCOMAdminCatalogObject;
C++
__fastcall TCOMAdminCatalogObject Add();

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.
 

 

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!