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

System.Security.AccessControl.RegistryAuditRule

public sealed class RegistryAuditRule : AuditRule
Represents a set of access rights to be audited for a user or group. This class cannot be inherited.
namespace System.Security.AccessControl { public sealed class RegistryAuditRule : AuditRule { public RegistryRights RegistryRights { get; } public RegistryAuditRule(IdentityReference identity, RegistryRights registryRights, InheritanceFlags inheritanceFlags, PropagationFlags propagationFlags, AuditFlags flags); public RegistryAuditRule(string identity, RegistryRights registryRights, InheritanceFlags inheritanceFlags, PropagationFlags propagationFlags, AuditFlags flags); } }