ITcSmTreeItem::DeleteChild
Deletes a direct child by its name. For simple Tree Items that do not support this operation, E_NOTIMPL is returned.
Signature
HRESULT DeleteChild(BSTR bstrName);
Parameter
|
Name |
Type |
Description |
|---|---|---|
|
bstrName |
BSTR |
[in] Name of the child to be deleted. |
Return value
|
Name |
Type |
Description |
|---|---|---|
|
(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: The referenced Tree Item is no longer valid.