CommonSecurityDescriptor.SetDiscretionaryAclProtection 方法

定义

设置与此 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 中删除继承的访问规则。

适用于