Table of Contents

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

NameTypeDescription
sourceRoot RegistryKey
sourceKeyName string
targetParentKey RegistryKey
targetKeyName string

Returns

bool

CopyValues(RegistryKey, RegistryKey)

public static void CopyValues(RegistryKey sourceKey, RegistryKey destinationKey)

Parameters

NameTypeDescription
sourceKey RegistryKey
destinationKey RegistryKey

CopyValues(RegistryKey, RegistryKey, List<string>)

public static void CopyValues(RegistryKey sourceKey, RegistryKey destinationKey, List<string> valuesToSkip)

Parameters

NameTypeDescription
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

NameTypeDescription
root RegistryKey
subkeyName string
valueName string
defaultValue string

Returns

string

KeyExists(RegistryKey, string)

public static bool KeyExists(RegistryKey root, string keyName)

Parameters

NameTypeDescription
root RegistryKey
keyName string

Returns

bool