System.IO.Pipes.PipeSecurity.RemoveAuditRuleSpecific Method

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

Syntax

public void RemoveAuditRuleSpecific (PipeAuditRule rule)

Parameters

rule
The audit rule to remove.

Remarks

The PipeSecurity.RemoveAuditRuleSpecific(PipeAuditRule) method removes the specified matching System.Security.AccessControl.AccessControlType.Deny audit rule or the specified matching System.Security.AccessControl.AccessControlType.Allow audit rule from the current System.IO.Pipes.PipeSecurity object. For example, you can use this method to remove a specified System.Security.AccessControl.AccessControlType.Deny audit rule 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.RemoveAuditRuleSpecific(PipeAuditRule) method removes only a deny rule that specifies the System.Security.AccessControl.AuditFlags.Failure value. It does not remove any deny rules that specify 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