AddAccessRule Method (PipeAccessRule)
Collapse the table of content
Expand the table of content

PipeSecurity.AddAccessRule Method (PipeAccessRule)


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

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

public void AddAccessRule(
	PipeAccessRule rule


Type: System.IO.Pipes.PipeAccessRule

The access rule to add.

Exception Condition

The rule parameter is null.

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

.NET Framework
Available since 3.5
Return to top
© 2016 Microsoft