Removes an audit rule from the System Access Control List (SACL) that is associated with the current System.IO.Pipes.PipeSecurity object.
![]()
true if the audit rule was removed; otherwise, false
The PipeSecurity.RemoveAuditRule(PipeAuditRule) method removes either all matching System.Security.AccessControl.AccessControlType.Deny audit rules or all matching System.Security.AccessControl.AccessControlType.Allow audit rules from the current System.IO.Pipes.PipeSecurity object. For example, you can use this method to remove all System.Security.AccessControl.AccessControlType.Deny audit rules for a user by passing a System.Security.AccessControl.FileSystemAuditRule object created using the System.Security.AccessControl.AccessControlType.Deny value, the System.Security.AccessControl.AuditFlags.Failure value, and a user account. When you do this, the PipeSecurity.RemoveAuditRule(PipeAuditRule) method removes any deny rules that specify the System.Security.AccessControl.AuditFlags.Failure value or the System.Security.AccessControl.AuditFlags.Success value.