瀏覽代碼

Fixes #35

tags/4.2.4
Raimund Andée [MSFT] 6 年之前
父節點
當前提交
4bcaaa9427
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. +2
    -2
      Security2/FileSystem/FileSystemAuditRule2 Class/FileSystemAuditRule2.RemoveFileSystemAuditRule.cs

+ 2
- 2
Security2/FileSystem/FileSystemAuditRule2 Class/FileSystemAuditRule2.RemoveFileSystemAuditRule.cs 查看文件

@@ -17,7 +17,7 @@ namespace Security2

ace = (FileSystemAuditRule)sd.AuditRuleFactory(account, (int)rights, false, inheritanceFlags, propagationFlags, type);

sd.RemoveAuditRuleSpecific(ace);
sd.RemoveAuditRule(ace);

file.SetAccessControl(sd);
}
@@ -28,7 +28,7 @@ namespace Security2
var sd = directory.GetAccessControl(AccessControlSections.Audit);

ace = (FileSystemAuditRule)sd.AuditRuleFactory(account, (int)rights, false, inheritanceFlags, propagationFlags, type);
sd.RemoveAuditRuleSpecific(ace);
sd.RemoveAuditRule(ace);

directory.SetAccessControl(sd);
}


Loading…
取消
儲存