This topic has not yet been rated - Rate this topic

ICatalogCollection::PopulateByKey method

Populates a selected list of items in the collection from the COM+ catalog, based on the specified keys.

Syntax


HRESULT PopulateByKey(
  [in]  SAFEARRAY(VARIANT) psaKeys
);

Parameters

psaKeys [in]

The Key property value of the objects for which data is to be read.

Return value

This method can return the standard return values E_INVALIDARG, E_OUTOFMEMORY, E_UNEXPECTED, and E_FAIL, as well as the following values.

Return codeDescription
S_OK

The method completed successfully.

COMADMIN_E_OBJECTERRORS

Errors occurred while accessing one or more objects.

 

Remarks

Call the SaveChanges method prior to calling PopulateByKey if you want to save pending changes. Unsaved changes made to the collection are lost when you call PopulateByKey.

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

 

 

Send comments about this topic to Microsoft

Build date: 10/27/2012

Did you find this helpful?
(1500 characters remaining)

Community Additions

ADD
© 2013 Microsoft. All rights reserved.