ICatalogCollection::Add method

Adds an item to the collection, giving it the high index value.

Syntax


HRESULT Add(
  [out, retval] IDispatch **ppCatalogObject
);

Parameters

ppCatalogObject [out, retval]

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

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: