Method ReadRelativeValue
ReadRelativeValue(string, string, RegistryHive)
Reads value from Windows registry key specified with the relative path.
public static object? ReadRelativeValue(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.