ObjectSecurity.PurgeAuditRules(IdentityReference) 方法

定義

移除與指定之 IdentityReference 相關聯的所有稽核規則。

C#
public virtual void PurgeAuditRules (System.Security.Principal.IdentityReference identity);

參數

identity
IdentityReference

要為其移除所有稽核規則的 IdentityReference

例外狀況

並非所有的稽核規則都以標準順序排序。

適用於

產品 版本
.NET Core 1.0, Core 1.1, 6, 7
.NET Framework 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8
Windows Desktop 3.0, 3.1, 5