<PackageReference Include="System.Threading.AccessControl" Version="10.0.9" />

System.Security.AccessControl.SemaphoreAuditRule

public sealed class SemaphoreAuditRule : AuditRule
Represents a set of access rights to be audited for a user or group. This class cannot be inherited.

Gets the access rights affected by the audit rule.

public SemaphoreAuditRule(IdentityReference identity, SemaphoreRights eventRights, AuditFlags flags)

Initializes a new instance of the SemaphoreAuditRule class, specifying the user or group to audit, the rights to audit, and whether to audit success, failure, or both.