PipeSecurity::AddAccessRule Method (PipeAccessRule^)
.NET Framework (current version)
Adds an access rule to the Discretionary Access Control List (DACL) that is associated with the current PipeSecurity object.
Assembly: System.Core (in System.Core.dll)
Parameters
- rule
-
Type:
System.IO.Pipes::PipeAccessRule^
The access rule to add.
| Exception | Condition |
|---|---|
| ArgumentNullException | 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
Available since 3.5
Show: