ObjectSecurity.ModifyAuditRule(AccessControlModification, AuditRule, Boolean) ObjectSecurity.ModifyAuditRule(AccessControlModification, AuditRule, Boolean) ObjectSecurity.ModifyAuditRule(AccessControlModification, AuditRule, Boolean) ObjectSecurity.ModifyAuditRule(AccessControlModification, AuditRule, Boolean) Method

定義

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

public:
 virtual bool ModifyAuditRule(System::Security::AccessControl::AccessControlModification modification, System::Security::AccessControl::AuditRule ^ rule, [Runtime::InteropServices::Out] bool % modified);
public virtual bool ModifyAuditRule (System.Security.AccessControl.AccessControlModification modification, System.Security.AccessControl.AuditRule rule, out bool modified);
abstract member ModifyAuditRule : System.Security.AccessControl.AccessControlModification * System.Security.AccessControl.AuditRule * bool -> bool
override this.ModifyAuditRule : System.Security.AccessControl.AccessControlModification * System.Security.AccessControl.AuditRule * bool -> bool
Public Overridable Function ModifyAuditRule (modification As AccessControlModification, rule As AuditRule, ByRef modified As Boolean) As Boolean

參數

modification
AccessControlModification AccessControlModification AccessControlModification AccessControlModification

要套用至 SACL 的修改。The modification to apply to the SACL.

rule
AuditRule AuditRule AuditRule AuditRule

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

modified
Boolean Boolean Boolean Boolean

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

傳回

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

適用於