ICatalogCollection::Add method (COM+)

Switch View :
ScriptFree
ICatalogCollection::Add method

Applies to: desktop apps only

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

Minimum supported server

Windows 2000 Server

Header

ComAdmin.h

IDL

ComAdmin.Idl

See also

ICatalogCollection

 

 

Send comments about this topic to Microsoft

Build date: 2/3/2012