Export (0) Print
Expand All

PipeSecurity.RemoveAuditRule Method (PipeAuditRule)

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

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

public bool RemoveAuditRule(
	PipeAuditRule rule


Type: System.IO.Pipes.PipeAuditRule

The audit rule to remove.

Return Value

Type: System.Boolean
true if the audit rule was removed; otherwise, false


The rule parameter is null.

The RemoveAuditRule method removes either all matching Deny audit rules or all matching Allow audit rules from the current PipeSecurity object. For example, you can use this method to remove all Deny audit rules for a user by passing a FileSystemAuditRule object created using the Deny value, the Failure value, and a user account. When you do this, the RemoveAuditRule method removes any deny rules that specify the Failure value or the Success value.

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5

.NET Framework Client Profile

Supported in: 4, 3.5 SP1
© 2015 Microsoft