共用方式為


ObjectSecurity<T>.RemoveAuditRule(AuditRule<T>) 方法

定義

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

public:
 virtual bool RemoveAuditRule(System::Security::AccessControl::AuditRule<T> ^ rule);
public virtual bool RemoveAuditRule (System.Security.AccessControl.AuditRule<T> rule);
override this.RemoveAuditRule : System.Security.AccessControl.AuditRule<'T (requires 'T : struct)> -> bool
Public Overridable Function RemoveAuditRule (rule As AuditRule(Of T)) As Boolean

參數

rule
AuditRule<T>

要移除的稽核規則。

傳回

如果已移除物件,即傳回 true;否則傳回 false

適用於