API | ITcTaskModule Error codes E_FAIL : The collection is read-only. 5.10.2.5 ITcTreeItemCollection2::Contains | ITcTreeItemCollection2::Contains Checks whether the exact same ITcSmTreeItem7 reference is contained in the collection. Signature HRESULT Contains(ITcSmTreeItem7* pItem, VARIANT_BOOL* pbContained); Parameter Return value Error codes E_POINTER : pItem is NULL . See also ContainsPath 5.10.2.6 ITcTreeItemCollection2::ContainsPath | ITcTreeItemCollection2::ContainsPath Checks, case-insensitively, whether an item in the collection has the same PathName as pathName .
Signature HRESULT ContainsPath(BSTR pathName, VARIANT_BOOL* pbContained); Parameter Return value See also Contains 5.11 ITcTaskModule | ITcTaskModule ITcTaskModule is the COM interface for the basic properties of a TwinCAT real-time control task (cycle time, priority). TE1000 95 Version: 1.7.0 Name Type Description pItem ITcSmTreeItem7 [} 63]* [in] Item to be checked. Name Type Description pbContained VARIANT BOOL* _ [out, retval] VARIANT TRUE, if the item is found. _ (HRESULT) HRESULT S OK if successful, otherwise an error code. _ Name Type Description pathName BSTR [in] Path name to be checked.
Name Type Description pbContained VARIANT BOOL* _ [out, retval] VARIANT TRUE if an item with this path is _ found. (HRESULT) HRESULT S OK if successful, otherwise an error code. _