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

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.
using System.Runtime.CompilerServices; using System.Security.Principal; namespace System.Security.AccessControl { [System.Runtime.CompilerServices.NullableContext(1)] [System.Runtime.CompilerServices.Nullable(0)] public sealed class RegistryAccessRule : AccessRule { public RegistryRights RegistryRights { get { throw new PlatformNotSupportedException(System.SR.PlatformNotSupported_Registry); } } public RegistryAccessRule(IdentityReference identity, RegistryRights registryRights, AccessControlType type) : base(null, 0, false, InheritanceFlags.None, PropagationFlags.None, AccessControlType.Allow) { throw new PlatformNotSupportedException(System.SR.PlatformNotSupported_Registry); } public RegistryAccessRule(IdentityReference identity, RegistryRights registryRights, InheritanceFlags inheritanceFlags, PropagationFlags propagationFlags, AccessControlType type) : base(null, 0, false, InheritanceFlags.None, PropagationFlags.None, AccessControlType.Allow) { throw new PlatformNotSupportedException(System.SR.PlatformNotSupported_Registry); } public RegistryAccessRule(string identity, RegistryRights registryRights, AccessControlType type) : base(null, 0, false, InheritanceFlags.None, PropagationFlags.None, AccessControlType.Allow) { throw new PlatformNotSupportedException(System.SR.PlatformNotSupported_Registry); } public RegistryAccessRule(string identity, RegistryRights registryRights, InheritanceFlags inheritanceFlags, PropagationFlags propagationFlags, AccessControlType type) : base(null, 0, false, InheritanceFlags.None, PropagationFlags.None, AccessControlType.Allow) { throw new PlatformNotSupportedException(System.SR.PlatformNotSupported_Registry); } } }