mirror of
https://github.com/MicrosoftDocs/windows-itpro-docs.git
synced 2025-05-13 05:47:23 +00:00
1.7 KiB
1.7 KiB
title, description, ms.assetid, ms.author, ms.topic, ms.prod, ms.technology, author, ms.date
title | description | ms.assetid | ms.author | ms.topic | ms.prod | ms.technology | author | ms.date |
---|---|---|---|---|---|---|---|---|
ICSPNode DeleteChild | ICSPNode DeleteChild | 8cf3663d-a4cf-4d11-b03a-f1d096ad7f9c | maricia | article | w10 | windows | MariciaAlforque | 06/26/2017 |
ICSPNode::DeleteChild
Deletes the specified child node from the configuration service provider node. ICSPNode::Clear must always be called first on the child node that is to be deleted.
Syntax
HRESULT DeleteChild([in] IConfigManager2URI* puriChildToDelete);
Parameters
puriChildToDelete
The name of the child node to delete.
Return Values
Return Value | Description |
---|---|
CFGMGR_E_NODENOTFOUND | The child node does not exist |
CFGMGR_E_COMMANDNOTALLOWED | The child node to be deleted is a read-only node |
S_OK | Success. |
A value of S_OK indicates that a node was successfully deleted. CFGMGR_E_NODENOTFOUND indicates that the child node does not exist. CFGMGR_E_COMMANDNOTALLOWED indicates that this node does not support the ICSP::DeleteChild method, or that the child node to be deleted is a read-only node.
Remarks
For externally–transactioned nodes, if this method is implemented, then ICSPNode::Add must also be implemented or rollback will fail.
Requirements
Header: None
Related topics
Create a custom configuration service provider