Method ReadRelativeString
ReadRelativeString(string, string, RegistryHive)
Reads string value from Windows registry key specified with the relative path.
public static string? ReadRelativeString(string relativeKeyPath, string valueName, RegistryHive hive = RegistryHive.LocalMachine)
Parameters
relativeKeyPath
stringRelative path to value.
valueName
stringName of the value.
hive
RegistryHiveRegistryHive value which specifies base path.