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