Removes all access control rules with the same user as the specified rule, regardless of System.Security.AccessControl.AccessControlType, and then adds the specified rule.
- rule
- The System.Security.AccessControl.EventWaitHandleAccessRule to add. The user specified by this rule determines the rules to remove before this rule is added.