CommonObjectSecurity.RemoveAccessRuleAll(AccessRule) 方法

定义

从与此 CommonObjectSecurity 对象关联的自由访问控制列表 (DACL) 中移除与指定的访问规则具有相同安全性标识符的所有访问规则。Removes all access rules that have the same security identifier as the specified access rule from the Discretionary Access Control List (DACL) associated with this CommonObjectSecurity object.

protected:
 void RemoveAccessRuleAll(System::Security::AccessControl::AccessRule ^ rule);
protected void RemoveAccessRuleAll (System.Security.AccessControl.AccessRule rule);
member this.RemoveAccessRuleAll : System.Security.AccessControl.AccessRule -> unit
Protected Sub RemoveAccessRuleAll (rule As AccessRule)

参数

rule
AccessRule

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

注解

为了避免意外允许访问主体,应用程序应检查是否存在允许每个人完全访问权限(AEFA)访问控制项(ACE),并在修改 DACL 之前将其删除。To avoid unintentionally allowing access to principals, applications should check for the existence of an allow everyone full access (AEFA) access control entry (ACE) and remove it before modifying a DACL.

适用于