共用方式為


ObjectSecurity.ModifyAudit 方法

定義

將指定的修改套用至與這個 ObjectSecurity 物件關聯的系統存取控制清單 (SACL)。

protected:
 abstract bool ModifyAudit(System::Security::AccessControl::AccessControlModification modification, System::Security::AccessControl::AuditRule ^ rule, [Runtime::InteropServices::Out] bool % modified);
protected abstract bool ModifyAudit (System.Security.AccessControl.AccessControlModification modification, System.Security.AccessControl.AuditRule rule, out bool modified);
abstract member ModifyAudit : System.Security.AccessControl.AccessControlModification * System.Security.AccessControl.AuditRule * bool -> bool
Protected MustOverride Function ModifyAudit (modification As AccessControlModification, rule As AuditRule, ByRef modified As Boolean) As Boolean

參數

modification
AccessControlModification

要套用至 SACL 的修改。

rule
AuditRule

要修改的稽核規則。

modified
Boolean

若已實際修改 SACL,則為 true;否則為 false

傳回

如果成功修改 SACL,則為 true;否則為 false

適用於