API | ITcTreeItemCollection Return value Error codes E_POINTER : pItem is NULL . E_FAIL : The collection is read-only. 5.10.2.3 ITcTreeItemCollection2::AddRange | ITcTreeItemCollection2::AddRange Adds all items from another collection. For collections without duplicates, all items are checked first. As soon as a duplicate is detected, the method fails. Signature HRESULT AddRange(ITcTreeItemCollection* pColl); Parameter Return value Error codes E_POINTER : pColl is NULL . E_FAIL : The collection is read-only, or a duplicate was detected. Errors from Count , Item , Add , or Contains are forwarded.
See also Add 5.10.2.4 ITcTreeItemCollection2::Clear | ITcTreeItemCollection2::Clear Removes all items from the collection and releases the held references. Signature HRESULT Clear(); Parameter (none) Return value TE1000 94 Version: 1.7.0 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. _ Name Type Description pColl ITcTreeItemCollection* [in] Collection to which items are added. Name Type Description (HRESULT) HRESULT S OK if successful, otherwise an error code. _ Name Type Description (HRESULT) HRESULT S OK if successful, otherwise an error code. _