ITcSysManager3::LookupTreeItemById
Searches for a Tree Item based on its type (enum) and type-specific ID.
Signature
HRESULT LookupTreeItemById(long itemType, long itemId, ITcSmTreeItem** pipItem);
Parameter
Name | Type | Description |
|---|---|---|
itemType | long | [in] Tree Item type (see TREEITEMTYPES). |
itemId | long | [in] Type-specific numeric identifier. |
Return value
Name | Type | Description |
|---|---|---|
pipItem | ITcSmTreeItem** | [out, retval] Resolved Tree Item. |
(HRESULT) | HRESULT |
|
Error codes
-
TSM_E_INVALIDITEMTYPE: Type is unknown. -
TSM_E_ITEMNOTFOUND: No item of the specified type with the given ID was found.
See also
- ITcSysManager::LookupTreeItem: Search by Path Name