The registry key inherits the mode of its parent. Security checks are performed when trying to access subkeys or values, unless the parent was opened with RegistryKeyPermissionCheck.ReadSubTree or RegistryKeyPermissionCheck.ReadWriteSubTree mode.