ComponentSpace Registry Toolkit Class Library Reference

RegistryHelper.RenameKey Method (String, String)

Rename the key.

[Visual Basic]
Overloads Public Shared Sub RenameKey( _
   ByVal oldKeyName As String, _
   ByVal newKeyName As String _
)
[C#]
public static void RenameKey(
   string oldKeyName,
   string newKeyName
);

Parameters

oldKeyName
The old key name.
newKeyName
The new key name.

Remarks

For example, if the new key name is HKEY_LOCAL_MACHINE\Software\Test then the key is renamed HKEY_LOCAL_MACHINE\Software\Test.

Exceptions

Exception Type Condition
RegistryToolkitException Thrown when the registry operation fails.

See Also

RegistryHelper Class | ComponentSpace.RegistryToolkit Namespace | RegistryHelper.RenameKey Overload List