ICOMAdminCatalog::GetCollection method (comadmin.h)
Retrieves a top-level collection on the COM+ catalog.
Syntax
HRESULT GetCollection(
[in] BSTR bstrCollName,
[out, retval] IDispatch **ppCatalogCollection
);
Parameters
[in] bstrCollName
The name of the collection to be retrieved.
[out, retval] ppCatalogCollection
The ICatalogCollection interface for the collection.
Return value
This method can return the standard return values E_INVALIDARG, E_OUTOFMEMORY, E_UNEXPECTED, E_FAIL, and S_OK.
Remarks
This method retrieves a top-level collection, such as the Applications collection, from the COM+ catalog. For related collections that are not top-level collections, such as Components, use the GetCollection method available from the parent collection.
The catalog collection retrieved by GetCollection does not contain data from the catalog for items contained within the collection. Use the Populate method to read in data for items in the collection.
For a complete list of collections in the COM+ catalog, see COM+ Administration Collections.
Requirements
Requirement | Value |
---|---|
Minimum supported client | Windows 2000 Professional [desktop apps only] |
Minimum supported server | Windows 2000 Server [desktop apps only] |
Target Platform | Windows |
Header | comadmin.h |