<PackageReference Include="Microsoft.Win32.Registry" Version="4.7.0" />

RegistryOptions

public enum RegistryOptions
Specifies options to use when creating a registry key.
None = 0

A non-volatile key. This is the default.

A volatile key. The information is stored in memory and is not preserved when the corresponding registry hive is unloaded.