RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TCOMAdminCatalog.GetCollection Method

Returns a TCOMAdminCatalogCollection object for a specified collection.

Pascal
function GetCollection(const bstrCollName: WideString): TCOMAdminCatalogCollection;
C++
__fastcall TCOMAdminCatalogCollection GetCollection(const BSTR bstrCollName);

GetCollection retrieves a top-level collection from the COM+ catalog, such as Applications. Subcollections (collections that are not top-level collections, such as Components) must be fetched using the GetCollection method of their parent collection or using the GetCollectionByQuery method.  

bstrCollName is the name of the desired collection. The available collections depend on your version of the COMAdmin Library. See the Microsoft documentation for a list of the available collections in your version of the COMAdmin Library.

Note: The TCOMAdminCatalogCollection object that GetCollection returns does not contain data from the catalog for items contained in the collection. Use the Populate method to read in data for items in the collection.
 

 

Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!