ICatalogCollection::Add method (comadmin.h)
Adds an item to the collection, giving it the high index value.
Syntax
HRESULT Add(
[out, retval] IDispatch **ppCatalogObject
);
Parameters
[out, retval] ppCatalogObject
A pointer to the ICatalogObject interface pointer for the new object.
Return value
This method can return the standard return values E_INVALIDARG, E_OUTOFMEMORY, E_UNEXPECTED, E_FAIL, and S_OK.
Remarks
The AddEnabled property indicates whether the collection supports this method.
When an object is added, the Count property is incremented to reflect the change.
This change is not reflected in the persisted COM+ catalog data store until you use SaveChanges.
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 |