CommonObjectSecurity.RemoveAuditRule(AuditRule) CommonObjectSecurity.RemoveAuditRule(AuditRule) CommonObjectSecurity.RemoveAuditRule(AuditRule) CommonObjectSecurity.RemoveAuditRule(AuditRule) Method

定義

從與這個 CommonObjectSecurity 物件相關聯的系統存取控制清單 (SACL),移除包含與指定稽核規則相同安全識別項和存取遮罩的稽核規則。Removes audit rules that contain the same security identifier and access mask as the specified audit rule from the System Access Control List (SACL) associated with this CommonObjectSecurity object.

protected:
 bool RemoveAuditRule(System::Security::AccessControl::AuditRule ^ rule);
protected bool RemoveAuditRule (System.Security.AccessControl.AuditRule rule);
member this.RemoveAuditRule : System.Security.AccessControl.AuditRule -> bool
Protected Function RemoveAuditRule (rule As AuditRule) As Boolean

參數

rule
AuditRule AuditRule AuditRule AuditRule

要移除的稽核規則。The audit rule to remove.

傳回

如果成功移除稽核規則,則為 true,否則為 falsetrue if the audit rule was successfully removed; otherwise, false.

備註

您可以使用複雜的演算法來完成 audit 移除作業,這種演算法可能會新增 audit control 規則,並將其移除。Audit removal is accomplished by using a complex algorithm that might add audit control rules in addition to removing them.

這個方法無法移除 audit 規則,而且false如果與 audit 規則相關聯的繼承規則太複雜,移除演算法才會成功。This method fails to remove the audit rule and returns false if the inheritance rules associated with the audit rule are too complex for the removal algorithm to succeed.

適用於