Class RegistryUtility
- Namespace
- ArcanaDevelopment.adTempus.Shared
- Assembly
- ArcanaDevelopment.adTempus.Shared.dll
public static class RegistryUtility
- Inheritance
-
object
RegistryUtility
Methods
CopyKey(RegistryKey, string, RegistryKey, string)
Copy a registry key. The parentKey must be writeable.
public static bool CopyKey(RegistryKey sourceRoot, string sourceKeyName, RegistryKey targetParentKey, string targetKeyName)
Parameters
| Name | Type | Description |
sourceRoot |
RegistryKey |
|
sourceKeyName |
string |
|
targetParentKey |
RegistryKey |
|
targetKeyName |
string |
|
Returns
- bool
CopyValues(RegistryKey, RegistryKey)
public static void CopyValues(RegistryKey sourceKey, RegistryKey destinationKey)
Parameters
| Name | Type | Description |
sourceKey |
RegistryKey |
|
destinationKey |
RegistryKey |
|
CopyValues(RegistryKey, RegistryKey, List<string>)
public static void CopyValues(RegistryKey sourceKey, RegistryKey destinationKey, List<string> valuesToSkip)
Parameters
| Name | Type | Description |
sourceKey |
RegistryKey |
|
destinationKey |
RegistryKey |
|
valuesToSkip |
List<string> |
|
GetRegistryValue(RegistryKey, string, string, string)
public static string GetRegistryValue(RegistryKey root, string subkeyName, string valueName, string defaultValue = null)
Parameters
| Name | Type | Description |
root |
RegistryKey |
|
subkeyName |
string |
|
valueName |
string |
|
defaultValue |
string |
|
Returns
- string
KeyExists(RegistryKey, string)
public static bool KeyExists(RegistryKey root, string keyName)
Parameters
| Name | Type | Description |
root |
RegistryKey |
|
keyName |
string |
|
Returns
- bool