System.IO.Pipes.PipeSecurity.RemoveAuditRule Method

Removes an audit rule from the System Access Control List (SACL) that is associated with the current System.IO.Pipes.PipeSecurity object.

Syntax

public bool RemoveAuditRule (PipeAuditRule rule)

Parameters

rule
The audit rule to remove.

Returns

true if the audit rule was removed; otherwise, false

Remarks

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.

Requirements

Namespace: System.IO.Pipes
Assembly: System.Core (in System.Core.dll)
Assembly Versions: 4.0.0.0