Config Helper
DeleteSubKeyTree() Method
Example 



KellermanSoftware.ConfigHelper Namespace > RegistryReaderWriter Class > DeleteSubKeyTree Method : DeleteSubKeyTree() Method
Delete the sub tree for the DefaultBaseLocation and DefaultSubKey. Requires local admin rights, even in the CurrentUser location.
Syntax
Public Overloads Function DeleteSubKeyTree() As Boolean
Dim instance As RegistryReaderWriter
Dim value As Boolean
 
value = instance.DeleteSubKeyTree()
public bool DeleteSubKeyTree()
public:
bool DeleteSubKeyTree(); 
Example
//Trial Mode
RegistryReaderWriter reg = new RegistryReaderWriter();
 
//License Mode
//RegistryReaderWriter reg = new RegistryReaderWriter("John Smith 10000", "psdfljksfdl==");
 
reg.Write("DeleteKeyTest", "DeleteKeyTestValue");
 
reg.DeleteSubKeyTree();
'Trial Mode
Dim reg As New RegistryReaderWriter()
 
'License Mode
'Dim reg As New RegistryReaderWriter("John Smith 10000", "psdfljksfdl==")
 
reg.Write("DeleteKeyTest", "DeleteKeyTestValue")
 
reg.DeleteSubKeyTree()
Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

RegistryReaderWriter Class
RegistryReaderWriter Members
Overload List