System.IO.Pipes.PipeSecurity.SetAuditRule Method

Sets an audit rule in the System Access Control List (SACL) that is associated with the current System.IO.Pipes.PipeSecurity object.

Syntax

public void SetAuditRule (PipeAuditRule rule)

Parameters

rule
The rule to set.

Remarks

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.

Requirements

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