RemoveAuditRule Method (PipeAuditRule)
Collapse the table of content
Expand the table of content

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

Exception Condition

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
Available since 3.5
Return to top
© 2016 Microsoft