Sets an audit rule in the System Access Control List (SACL) that is associated with the current System.IO.Pipes.PipeSecurity object.
The PipeSecurity.SetAuditRule(PipeAuditRule) method adds the specified audit rule or overwrites any identical audit 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.SetAuditRule(PipeAuditRule) method finds an identical audit rule that specifies the PipeAccessRights.Read value, the identical rule will be overwritten. If the PipeSecurity.SetAuditRule(PipeAuditRule) method finds an identical audit rule that specifies the PipeAccessRights.Write value, the identical rule will not be overwritten.