beckhoff TE1000 TwinCAT 3 — 5.10.2.2 ITcTreeItemCollection2::Remove

API | ITcTreeItemCollection 5.10.2 ITcTreeItemCollection2 | ITcTreeItemCollection2 Inherits from: ITcTreeItemCollection ITcTreeItemCollection2 adds write collection operations. Whether duplicates are allowed and whether the collection is read-only is determined when the collection is created. ChildItems for example, it returns a read-only collection. Methods 5.10.2.1 ITcTreeItemCollection2::Add | 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 Return value Error codes E_POINTER : pItem is NULL . E_FAIL : The collection is read-only, or duplicates are not allowed, and the item is already included. 5.10.2.2 ITcTreeItemCollection2::Remove | 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 TE1000 93 Version: 1.7.0 Method Description Add Adds a Tree Item. AddRange Adds all items from another collection. Clear Removes all items from the collection.

Contains Checks whether an item is included. ContainsPath Checks, case-insensitively, whether an item with the specified path is present. Remove Removes a Tree Item from the collection. Name Type Description pItem ITcSmTreeItem7 [} 63]* [in] Tree Item to be added. Name Type Description (HRESULT) HRESULT S OK if successful, otherwise an error code. _ Name Type Description pItem ITcSmTreeItem7 [} 63]* [in] Item to be removed.