Share via


CommonSecurityDescriptor.SetDiscretionaryAclProtection 方法

定義

設定與這個 CommonSecurityDescriptor 物件相關聯之 Discretionary 存取控制清單 (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 中的繼承存取規則。

適用於