Creates a new access control rule for the specified user, with the specified access rights, access control, and flags.
- identityReference
- An System.Security.Principal.IdentityReference that identifies the user or group the rule applies to.
- accessMask
- A bitwise combination of System.Security.AccessControl.SemaphoreRights values specifying the access rights to allow or deny, cast to an integer.
- isInherited
- Meaningless for named semaphores, because they have no hierarchy.
- inheritanceFlags
- Meaningless for named semaphores, because they have no hierarchy.
- propagationFlags
- Meaningless for named semaphores, because they have no hierarchy.
- type
- One of the System.Security.AccessControl.AccessControlType values specifying whether the rights are allowed or denied.
A System.Security.AccessControl.SemaphoreAccessRule object representing the specified rights for the specified user.
The recommended way to create access control rules is to use the constructors of the System.Security.AccessControl.SemaphoreAccessRule class.
Although inheritance and propagation flags are meaningless for named semaphores, it is still possible to specify them This is not recommended, because it needlessly complicates the maintenance of rules, for example by interfering with the combination of rules that would otherwise be compatible.