2019-06-10 11:56:55 -07:00

1.7 KiB
Raw Blame History

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 DeleteChild ICSPNode DeleteChild 8cf3663d-a4cf-4d11-b03a-f1d096ad7f9c dansimp dansimp article w10 windows manikadhiman 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 externallytransactioned nodes, if this method is implemented, then ICSPNode::Add must also be implemented or rollback will fail.

Requirements

Header: None

Create a custom configuration service provider