Share via


CommonSecurityDescriptor.SetSystemAclProtection(Boolean, Boolean) 方法

定義

設定與這個 CommonSecurityDescriptor 物件相關聯之系統存取控制清單 (SACL) 的繼承保護。 保護的 SACL 不會從父容器繼承稽核規則。

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 中的繼承稽核規則。

適用於