ITcTreeItemCollection2::Add

Adds an item to the collection and increments its reference counter. If duplicates are not allowed, the system first checks using Contains and rejects any item that is already present.

Signature

HRESULT Add(ITcSmTreeItem7* pItem);

Parameter

Name

Type

Description

pItem

ITcSmTreeItem7*

[in] Tree Item to be added.

Return value

Name

Type

Description

(HRESULT)

HRESULT

S_OK if successful, otherwise an error code.

Error codes