Επεξεργασία

Κοινή χρήση μέσω


PipeSecurity.RemoveAccessRule(PipeAccessRule) Method

Definition

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

public:
 bool RemoveAccessRule(System::IO::Pipes::PipeAccessRule ^ rule);
public bool RemoveAccessRule (System.IO.Pipes.PipeAccessRule rule);
override this.RemoveAccessRule : System.IO.Pipes.PipeAccessRule -> bool
Public Function RemoveAccessRule (rule As PipeAccessRule) As Boolean

Parameters

rule
PipeAccessRule

The access rule to remove.

Returns

true if the operation is successful; otherwise, false.

Exceptions

The rule parameter is null.

Remarks

The RemoveAccessRule method removes either all matching Deny access rules or all matching Allow access rules from the current PipeSecurity object. For example, you can use this method to remove all Deny access rules for a user by passing a PipeAccessRule object created using the Deny value, the Read value, and a user account. The RemoveAccessRule method removes any deny rules that specify the Read value or the Write value.

Applies to