System.IO.Pipes.PipeSecurity.RemoveAccessRule Method

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

Syntax

public bool RemoveAccessRule (PipeAccessRule rule)

Parameters

rule
The access rule to remove.

Returns

true if the operation is successful; otherwise, false.

Remarks

The PipeSecurity.RemoveAccessRule(PipeAccessRule) method removes either all matching System.Security.AccessControl.AccessControlType.Deny access rules or all matching System.Security.AccessControl.AccessControlType.Allow access rules from the current System.IO.Pipes.PipeSecurity object. For example, you can use this method to remove all System.Security.AccessControl.AccessControlType.Deny access rules for a user by passing a System.IO.Pipes.PipeAccessRule object created using the System.Security.AccessControl.AccessControlType.Deny value, the PipeAccessRights.Read value, and a user account. The PipeSecurity.RemoveAccessRule(PipeAccessRule) method removes any deny rules that specify the PipeAccessRights.Read value or the PipeAccessRights.Write value.

Requirements

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