コード例 #1
0
 /// <summary>
 /// Gets the parent key
 /// </summary>
 /// <param name="registryKey">The registry key</param>
 /// <param name="writable">True if the key should be writable</param>
 /// <returns>The parent key</returns>
 public static RegistryKey GetParentKey(this RegistryKey registryKey, bool writable = false)
 {
     return(RegistryHelpers.GetKeyFromFullPath(RegistryHelpers.GetParentKeyPath(registryKey.Name), registryKey.View, writable));
 }