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

System.Security.AccessControl.SemaphoreSecurity

public sealed class SemaphoreSecurity : NativeObjectSecurity
Represents the Windows access control security for a named semaphore. This class cannot be inherited.
namespace System.Security.AccessControl { public sealed class SemaphoreSecurity : NativeObjectSecurity { public SemaphoreSecurity(); public SemaphoreSecurity(string name, AccessControlSections includeSections); public void AddAccessRule(SemaphoreAccessRule rule); public void AddAuditRule(SemaphoreAuditRule rule); public bool RemoveAccessRule(SemaphoreAccessRule rule); public void RemoveAccessRuleAll(SemaphoreAccessRule rule); public void RemoveAccessRuleSpecific(SemaphoreAccessRule rule); public bool RemoveAuditRule(SemaphoreAuditRule rule); public void RemoveAuditRuleAll(SemaphoreAuditRule rule); public void RemoveAuditRuleSpecific(SemaphoreAuditRule rule); public void ResetAccessRule(SemaphoreAccessRule rule); public void SetAccessRule(SemaphoreAccessRule rule); public void SetAuditRule(SemaphoreAuditRule rule); } }