RegistryKey.DeleteValue Method (String)
Deletes the specified value from this key.
Assembly: mscorlib (in mscorlib.dll)
name is not a valid reference to a value.
The user does not have the permissions required to delete the value.
The RegistryKey being manipulated is closed (closed keys cannot be accessed).
The RegistryKey being manipulated is read-only.
On Windows 95, Windows 98, Windows 98 Second Edition, and Windows Millennium Edition, specifying an empty string for the name parameter does not delete the default value.
This code example is part of a larger example provided for the RegistryKey class.
Available since 10
Available since 1.1