Bewerken

Share via


PipeSecurity.AddAccessRule(PipeAccessRule) Method

Definition

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

public:
 void AddAccessRule(System::IO::Pipes::PipeAccessRule ^ rule);
public void AddAccessRule (System.IO.Pipes.PipeAccessRule rule);
override this.AddAccessRule : System.IO.Pipes.PipeAccessRule -> unit
Public Sub AddAccessRule (rule As PipeAccessRule)

Parameters

rule
PipeAccessRule

The access rule to add.

Exceptions

The rule parameter is null.

Remarks

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.

Applies to