Sets an access rule in the Discretionary Access Control List (DACL) that is associated with the current System.IO.Pipes.PipeSecurity object.
The PipeSecurity.SetAccessRule(PipeAccessRule) method adds the specified access control list (ACL) rule or overwrites any identical ACL rules that match the System.IO.Pipes.PipeAccessRights value of the rule parameter. For example, if the rule parameter specifies a PipeAccessRights.Read value and the PipeSecurity.SetAccessRule(PipeAccessRule) method finds an identical ACL rule that specifies the PipeAccessRights.Read value, the identical rule will be overwritten. If the PipeSecurity.SetAccessRule(PipeAccessRule) method finds an identical ACL rule that specifies the PipeAccessRights.Write value, the identical rule will not be overwritten.