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