<PackageReference Include="System.Threading.AccessControl" Version="11.0.0-preview.4.26230.115" />

System.Security.AccessControl.SemaphoreAccessRule

public sealed class SemaphoreAccessRule : AccessRule
Represents a set of access rights allowed or denied for a user or group. This class cannot be inherited.

Gets the rights allowed or denied by the access rule.

Initializes a new instance of the SemaphoreAccessRule class, specifying the user or group the rule applies to, the access rights, and whether the specified access rights are allowed or denied.

public SemaphoreAccessRule(string identity, SemaphoreRights eventRights, AccessControlType type)

Initializes a new instance of the SemaphoreAccessRule class, specifying the name of the user or group the rule applies to, the access rights, and whether the specified access rights are allowed or denied.