Method GetSubKeyNames
GetSubKeyNames(string, RegistryHive)
Retrieves an array of strings that contains all the subkey names.
public static string[]? GetSubKeyNames(string keyPath, RegistryHive hive = RegistryHive.LocalMachine)
Parameters
keyPath
stringPath to value.
hive
RegistryHiveRegistryHive value which specifies base path.
Returns
- string[]
An array of strings that contains the names of the subkeys for the current key.