System.IO.Pipes.PipeSecurity.AddAccessRule Method

Adds an access rule to the Discretionary Access Control List (DACL) that is associated with the current System.IO.Pipes.PipeSecurity object.

Syntax

public void AddAccessRule (PipeAccessRule rule)

Parameters

rule
The access rule to add.

Remarks

The PipeSecurity.AddAccessRule(PipeAccessRule) method adds a new rule to the list of rules that a System.IO.Pipes.PipeSecurity object contains.If an access control list (ACL) already exists for the specified rule, the PipeSecurity.AddAccessRule(PipeAccessRule) method will still add the rule, with one exception: a System.IO.Pipes.PipeAccessRule object that is created using the System.Security.AccessControl.AccessControlType.Deny value supersedes an object that is created using the System.Security.AccessControl.AccessControlType.Allow value.

Requirements

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