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

RegistryAuditRule

public sealed class RegistryAuditRule : AuditRule
using System.Security.Principal; namespace System.Security.AccessControl { [SecurityCritical] public sealed class RegistryAuditRule : AuditRule { public RegistryRights RegistryRights { get { throw new PlatformNotSupportedException(System.SR.PlatformNotSupported_Registry); } } public RegistryAuditRule(IdentityReference identity, RegistryRights registryRights, InheritanceFlags inheritanceFlags, PropagationFlags propagationFlags, AuditFlags flags) : base(null, 0, false, InheritanceFlags.None, PropagationFlags.None, AuditFlags.None) { throw new PlatformNotSupportedException(System.SR.PlatformNotSupported_Registry); } public RegistryAuditRule(string identity, RegistryRights registryRights, InheritanceFlags inheritanceFlags, PropagationFlags propagationFlags, AuditFlags flags) : base(null, 0, false, InheritanceFlags.None, PropagationFlags.None, AuditFlags.None) { throw new PlatformNotSupportedException(System.SR.PlatformNotSupported_Registry); } } }