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

定义

将指定的修改应用到与此 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

要应用于 SACL 的修改。The modification to apply to the SACL.

rule
AuditRule

要修改的审核规则。The audit rule to modify.

modified
Boolean

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

返回

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

适用于