CommonObjectSecurity.RemoveAccessRuleAll(AccessRule) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
從與此 CommonObjectSecurity 物件相關的自由存取控制清單(DACL)中移除所有與指定存取規則具有相同安全識別碼的存取規則。
protected:
void RemoveAccessRuleAll(System::Security::AccessControl::AccessRule ^ rule);
protected void RemoveAccessRuleAll(System.Security.AccessControl.AccessRule rule);
member this.RemoveAccessRuleAll : System.Security.AccessControl.AccessRule -> unit
Protected Sub RemoveAccessRuleAll (rule As AccessRule)
參數
- rule
- AccessRule
存取規則是為了移除。
備註
為避免無意中允許存取主體,應用程式應檢查是否存在允許所有人完全存取(AEFA)存取控制條目(ACE),並在修改 DACL 前將其移除。