Vcl.CmAdmCtl.TCOMAdminCatalog.GetCollection

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

function  GetCollection(const bstrCollName: WideString):

C++

TCOMAdminCatalogCollection* __fastcall GetCollection(const System::WideString bstrCollName);

Properties

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

Description

Returns a TCOMAdminCatalogCollection object for a specified collection.

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.

See Also