PipeSecurity.SetAuditRule Method (PipeAuditRule)

 

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

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

public void SetAuditRule(
	PipeAuditRule rule
)

Parameters

rule
Type: System.IO.Pipes.PipeAuditRule

The rule to set.

Exception Condition
ArgumentNullException

The rule parameter is null.

The SetAuditRule method adds the specified audit rule or overwrites any identical audit rules that match the PipeAccessRights value of the rule parameter. For example, if the rule parameter specifies a Read value and the SetAuditRule method finds an identical audit rule that specifies the Read value, the identical rule will be overwritten. If the SetAuditRule method finds an identical audit rule that specifies the Write value, the identical rule will not be overwritten.

.NET Framework
Available since 3.5
Return to top
Show: