Globals.RegistryAccess.renameSubKey C# (CSharp) Method

renameSubKey() public static method

Renames a subkey of the passed in registry key since the Framework totally forgot to include such a handy feature.
public static renameSubKey ( RegistryKey parentKey, string subKeyName, string newSubKeyName ) : bool
parentKey Microsoft.Win32.RegistryKey
subKeyName string The name of the subkey that you want to rename ///
newSubKeyName string The new name of the RegistryKey
return bool
        public static bool renameSubKey(RegistryKey parentKey, string subKeyName, string newSubKeyName)
        {
            copyKey(parentKey, subKeyName, newSubKeyName);
            parentKey.DeleteSubKeyTree(subKeyName);
            return true;
        }