System.IO.Pipes.PipeSecurity.ResetAccessRule Method

Removes all access rules in the Discretionary Access Control List (DACL) that is associated with the current System.IO.Pipes.PipeSecurity object and then adds the specified access rule.

Syntax

public void ResetAccessRule (PipeAccessRule rule)

Parameters

rule
The access rule to add.

Remarks

The PipeSecurity.ResetAccessRule(PipeAccessRule) method adds the specified access control list (ACL) rule or overwrites any identical ACL rules that match the rule parameter. For example, if the rule parameter specifies a PipeAccessRights.Read value and the PipeSecurity.ResetAccessRule(PipeAccessRule) method finds an identical ACL rule that specifies the PipeAccessRights.Read value, the identical rule will be overwritten. If the PipeSecurity.ResetAccessRule(PipeAccessRule) method finds an identical ACL rule that specifies the PipeAccessRights.Write value, the identical rule will also be overwritten.

Requirements

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