Share via


IRegistryTools2.DeleteRegistryValueFromCurrentUserRoot(String, String) Method

Definition

Deletes the specified registry value from a key in the HKCU root Registry

public:
 bool DeleteRegistryValueFromCurrentUserRoot(System::String ^ regKeyPath, System::String ^ regKeyName);
public bool DeleteRegistryValueFromCurrentUserRoot (string regKeyPath, string regKeyName);
abstract member DeleteRegistryValueFromCurrentUserRoot : string * string -> bool
Public Function DeleteRegistryValueFromCurrentUserRoot (regKeyPath As String, regKeyName As String) As Boolean

Parameters

regKeyPath
String

Path to the registry key in the format key\subkey\subsubkey

regKeyName
String

Variable name under the key

Returns

True if removed, or false if error

Applies to