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

System.Security.AccessControl.RegistryAccessRule

public sealed class RegistryAccessRule : AccessRule
Represents a set of access rights allowed or denied for a user or group. This class cannot be inherited.
namespace System.Security.AccessControl { public sealed class RegistryAccessRule : AccessRule { public RegistryRights RegistryRights { get; } public RegistryAccessRule(IdentityReference identity, RegistryRights registryRights, AccessControlType type); public RegistryAccessRule(IdentityReference identity, RegistryRights registryRights, InheritanceFlags inheritanceFlags, PropagationFlags propagationFlags, AccessControlType type); public RegistryAccessRule(string identity, RegistryRights registryRights, AccessControlType type); public RegistryAccessRule(string identity, RegistryRights registryRights, InheritanceFlags inheritanceFlags, PropagationFlags propagationFlags, AccessControlType type); } }