DirectoryObjectSecurity.RemoveAuditRule(ObjectAuditRule) 方法

定義

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

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

參數

rule
ObjectAuditRule

要移除的稽核規則。

傳回

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

備註

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

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

適用於