Modifier

Partager via


PipeSecurity.SetAccessRule(PipeAccessRule) Method

Definition

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

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

Parameters

rule
PipeAccessRule

The rule to set.

Exceptions

The rule parameter is null.

Remarks

The SetAccessRule method adds the specified access control list (ACL) rule or overwrites any identical ACL rules that match the PipeAccessRights value of the rule parameter. For example, if the rule parameter specifies a Read value and the SetAccessRule method finds an identical ACL rule that specifies the Read value, the identical rule will be overwritten. If the SetAccessRule method finds an identical ACL rule that specifies the Write value, the identical rule will not be overwritten.

Applies to