Config Helper
Delete(String) Method
Example 



KellermanSoftware.ConfigHelper Namespace > RegistryReaderWriter Class > Delete Method : Delete(String) Method
Delete a registry key in the DefaultBaseLocation for the DefaultSubKey. Requires local admin rights, even in the CurrentUser location.
Syntax
Public Overloads Function Delete( _
   ByVal keyName As String _
) As Boolean
Dim instance As RegistryReaderWriter
Dim keyName As String
Dim value As Boolean
 
value = instance.Delete(keyName)
public bool Delete( 
   string keyName
)
public:
bool Delete( 
   String^ keyName
) 

Parameters

keyName
Example
//Trial Mode
RegistryReaderWriter reg = new RegistryReaderWriter();
 
//License Mode
//RegistryReaderWriter reg = new RegistryReaderWriter("John Smith 10000", "psdfljksfdl==");
 
reg.Write("DeleteKeyTest", "DeleteKeyTestValue");
 
reg.Delete("DeleteKeyTest");
'Trial Mode
Dim reg As New RegistryReaderWriter()
 
'License Mode
'Dim reg As New RegistryReaderWriter("John Smith 10000", "psdfljksfdl==")
 
reg.Write("DeleteKeyTest", "DeleteKeyTestValue")
 
reg.Delete("DeleteKeyTest")
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