<PackageReference Include="Microsoft.Win32.Registry" Version="5.0.0-preview.1.20120.5" />

RegistryKeyPermissionCheck

Specifies whether security checks are performed when opening registry keys and accessing their name/value pairs.
Default = 0

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 ReadSubTree or ReadWriteSubTree mode.

Security checks are not performed when accessing subkeys or values. A security check is performed when trying to open the current key, unless the parent was opened with ReadSubTree or ReadWriteSubTree.

Security checks are not performed when accessing subkeys or values. A security check is performed when trying to open the current key, unless the parent was opened with ReadWriteSubTree.