C# Class Disco.ClientBootstrapper.Interop.RegistryUtilities

Mostrar archivo Open project: garysharp/Disco

Public Methods

Method Description
CopyKey ( RegistryKey parentKey, string keyNameToCopy, string newKeyName ) : bool

Copy a registry key. The parentKey must be writeable.

RenameSubKey ( RegistryKey parentKey, string subKeyName, string newSubKeyName ) : bool

Renames a subkey of the passed in registry key since the Framework totally forgot to include such a handy feature.

Private Methods

Method Description
RecurseCopyKey ( RegistryKey sourceKey, RegistryKey destinationKey ) : void

Method Details

CopyKey() public static method

Copy a registry key. The parentKey must be writeable.
public static CopyKey ( RegistryKey parentKey, string keyNameToCopy, string newKeyName ) : bool
parentKey Microsoft.Win32.RegistryKey
keyNameToCopy string
newKeyName string
return bool

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