ICatalogCollection::GetCollection method

Retrieves a collection from the COM+ catalog that is related to the current collection.

Syntax


HRESULT GetCollection(
  [in]          BSTR      bstrCollName,
  [in]          VARIANT   varObjectKey,
  [out, retval] IDispatch **ppCatalogCollection
);

Parameters

bstrCollName [in]

The name of the collection to be retrieved.

varObjectKey [in]

The Key property value of the parent item of the collection to be retrieved.

ppCatalogCollection [out, retval]

The ICatalogCollection interface for the retrieved 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 does not read in data for items in the retrieved collection from the catalog data store. Use the Populate method to read in data for items in the collection.

Requirements

Minimum supported client

Windows 2000 Professional [desktop apps only]

Minimum supported server

Windows 2000 Server [desktop apps only]

Header

ComAdmin.h

IDL

ComAdmin.Idl

See also

ICatalogCollection

 

 

Community Additions

ADD
Show: