PipeSecurity.RemoveAccessRuleSpecific(PipeAccessRule) 方法

定义

将指定的访问规则从与当前 PipeSecurity 对象关联的自定义访问控制列表 (DACL) 中移除。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)

参数

rule
PipeAccessRule

要移除的访问规则。The access rule to remove.

异常

rule 参数为 nullThe rule parameter is null.

注解

方法从Allow当前Deny 对象PipeSecurity中移除所有匹配的访问规则或所有匹配的访问规则。 RemoveAccessRuleThe RemoveAccessRule method removes either all matching Deny access rules or all matching Allow access rules from the current PipeSecurity object. 例如, 你可以使用此方法Deny通过传递Read使用Deny值、值和用户帐户创建的PipeAccessRule对象来删除用户的所有访问规则。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. 方法删除任何Read指定值或Write值的拒绝规则。 RemoveAccessRuleThe RemoveAccessRule method removes any deny rules that specify the Read value or the Write value.

适用于