ITcTreeItemCollection2::Remove

Removes an item from the collection, if it is present, and decrements its reference counter. The result is reported via bRemoved.

Signature

HRESULT Remove(ITcSmTreeItem7* pItem, VARIANT_BOOL* bRemoved);

Parameter

Name

Type

Description

pItem

ITcSmTreeItem7*

[in] Item to be removed.

Return value

Name

Type

Description

bRemoved

VARIANT_BOOL*

[out, retval] VARIANT_TRUE if an item was removed.

(HRESULT)

HRESULT

S_OK if successful, otherwise an error code.

Error codes