PipeSecurity.RemoveAccessRuleSpecific Method (PipeAccessRule)


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

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

public void RemoveAccessRuleSpecific(
	PipeAccessRule rule


Type: System.IO.Pipes.PipeAccessRule

The access rule to remove.

Exception Condition

The rule parameter is null.

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

.NET Framework
Available since 3.5
Return to top