CommonObjectSecurity.RemoveAuditRule(AuditRule) 方法

定義

從與這個 CommonObjectSecurity 物件相關聯的系統存取控制清單 (SACL),移除包含與指定稽核規則相同安全識別項和存取遮罩的稽核規則。

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

要移除的稽核規則。

傳回

如果成功移除稽核規則,則為 true,否則為 false

備註

除了移除稽核規則之外,還會使用可能會新增稽核控制規則的複雜演算法來完成稽核移除。

這個方法無法移除稽核規則,如果與稽核規則相關聯的繼承規則太複雜,移除演算法無法成功,就會傳回 false

適用於