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.
This code example is part of a larger example provided for the RegistryKey class.
Windows 8.1, Windows Server 2012 R2, Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)