ICatalogCollection::Remove method (comadmin.h)

Removes an item from the collection, given its index, and re-indexes the items with higher index values.

Syntax

HRESULT Remove(
  [in] long lIndex
);

Parameters

[in] lIndex

The zero-based index of the item to be removed.

Return value

This method can return the standard return values E_INVALIDARG, E_OUTOFMEMORY, E_UNEXPECTED, E_FAIL, and S_OK.

Remarks

The RemoveEnabled property indicates whether the collection supports this method.

When an object is removed, the Count property is decremented to reflect the change.

These changes are not reflected in the COM+ catalog data store until you call 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

See also

ICatalogCollection