Επεξεργασία

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


PipeSecurity.RemoveAccessRuleSpecific(PipeAccessRule) Method

Definition

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

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

Parameters

rule
PipeAccessRule

The access rule to remove.

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