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 code | Description |
|---|---|
|
The method completed successfully. |
|
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 |
|
|
IDL |
|
See also
Send comments about this topic to Microsoft
Build date: 10/27/2012