CommonSecurityDescriptor.SetSystemAclProtection(Boolean, Boolean) 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
设置与此 CommonSecurityDescriptor 对象关联的系统访问控制列表(SACL)的继承保护。 受保护的 SCL 不会从父容器继承审核规则。
public:
void SetSystemAclProtection(bool isProtected, bool preserveInheritance);
public void SetSystemAclProtection(bool isProtected, bool preserveInheritance);
member this.SetSystemAclProtection : bool * bool -> unit
Public Sub SetSystemAclProtection (isProtected As Boolean, preserveInheritance As Boolean)
参数
- isProtected
- Boolean
true 保护 SACL 免受继承。
- preserveInheritance
- Boolean
true 若要在 SACL 中保留继承的审核规则,则为 ; false 从 SACL 中删除继承的审核规则。