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
|
Name |
Type |
Description |
|---|---|---|
|
pColl |
ITcTreeItemCollection* |
[in] Collection to which items are added. |
Return value
|
Name |
Type |
Description |
|---|---|---|
|
(HRESULT) |
HRESULT |
|
Error codes
-
E_POINTER:pCollisNULL. -
E_FAIL: The collection is read-only, or a duplicate was detected. - Errors from
Count,Item,Add, orContainsare forwarded.
See also
- Add