ObjectSecurity.ModifyAudit(AccessControlModification, AuditRule, Boolean) 方法

定義

將指定的修改套用至與這個 ObjectSecurity 物件關聯的系統存取控制清單 (SACL)。Applies the specified modification to the System Access Control List (SACL) associated with this ObjectSecurity object.

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 的修改。The modification to apply to the SACL.

rule
AuditRule

要修改的稽核規則。The audit rule to modify.

modified
Boolean

若已實際修改 SACL,則為 true;否則為 falsetrue if the SACL is actually modified; otherwise, false.

傳回

Boolean

如果成功修改 SACL,則為 true;否則為 falsetrue if the SACL is successfully modified; otherwise, false.

適用於