1.3 KiB
title, description, ms.assetid, ms.reviewer, manager, ms.author, ms.topic, ms.prod, ms.technology, author, ms.date
title | description | ms.assetid | ms.reviewer | manager | ms.author | ms.topic | ms.prod | ms.technology | author | ms.date |
---|---|---|---|---|---|---|---|---|---|---|
ICSPNode Clear | ICSPNode Clear | b414498b-110a-472d-95c0-2d5b38cd78a6 | dansimp | dansimp | article | w10 | windows | manikadhiman | 06/26/2017 |
ICSPNode::Clear
This method deletes the contents and child nodes of the current configuration service provider node. This method is always called on the child node before ICSPNode::DeleteChild is called on the parent node.
Syntax
HRESULT Clear();
Return Value
A value of S_OK indicates that the node was successfully cleared. CFGMGR_E_COMMANDNOTALLOWED indicates that this node does not support the Clear method.
Remarks
For externally–transactioned nodes, if this method is implemented, then ICSPNode::SetValue and ICSPNode::SetProperty must also be implemented or rollback will fail.
Before calling Clear on the target node, ConfigManager2 attempts to gather the current state of the node; the parent node does not have to preserve the state of its child nodes if they are externally-transactioned.
Requirements
Header: None
Related topics
Create a custom configuration service provider