ITcSmTreeItem::CreateChild
Creates a new child below the current item. Not every item type supports this operation; in that case, E_NOTIMPL is returned.
Signature
HRESULT CreateChild(BSTR bstrName, long nSubType, BSTR bstrBefore, VARIANT vInfo, ITcSmTreeItem** pipItem);
Parameter
|
Name |
Type |
Description |
|---|---|---|
|
bstrName |
BSTR |
[in] Name of the new child. |
|
nSubType |
long |
[in, defaultvalue(0)] SubType of the new child. |
|
bstrBefore |
BSTR |
[in, defaultvalue(L"")] Optional name of the child before which the insertion will take place. |
|
vInfo |
VARIANT |
[in, optional] Additional structured information. |
Return value
|
Name |
Type |
Description |
|---|---|---|
|
pipItem |
ITcSmTreeItem** |
[out, retval] Newly created Tree Item. |
|
(HRESULT) |
HRESULT |
|
Error codes
-
E_NOTIMPL: This specific item does not support this operation. -
E_ACCESSDENIED: The associated file must not be edited. -
TSM_E_ITEMDELETED: no longer refers to a valid Tree Item.