CommonSecurityDescriptor.SetSystemAclProtection(Boolean, Boolean) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
設定與這個 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 中的繼承稽核規則。
適用於
意見反應
https://aka.ms/ContentUserFeedback。
即將登場:在 2024 年,我們將逐步淘汰 GitHub 問題作為內容的意見反應機制,並將它取代為新的意見反應系統。 如需詳細資訊,請參閱:提交並檢視相關的意見反應