2018-05-11 10:45:43 -07:00

1.3 KiB
Raw Blame History

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 Clear ICSPNode Clear b414498b-110a-472d-95c0-2d5b38cd78a6 maricia article w10 windows MariciaAlforque 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 externallytransactioned 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

Create a custom configuration service provider