PipeSecurity.AddAuditRule Method (PipeAuditRule)

 

Adds an audit rule to 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 AddAuditRule(
	PipeAuditRule rule
)

Parameters

rule
Type: System.IO.Pipes.PipeAuditRule

The audit rule to add.

Exception Condition
ArgumentNullException

The rule parameter is null.

The AddAuditRule method adds a new audit rule to the list of rules that a PipeSecurity object contains.

If an audit rule already exists for the specified rule, the AddAuditRule method will still add the rule.

.NET Framework
Available since 3.5
Return to top
Show: