語言

PipeSecurity.RemoveAuditRule(PipeAuditRule) 方法

定義

從系統存取控制清單(SACL)中移除與目前 PipeSecurity 物件相關的稽核規則。

public:
 bool RemoveAuditRule(System::IO::Pipes::PipeAuditRule ^ rule);
public bool RemoveAuditRule(System.IO.Pipes.PipeAuditRule rule);
override this.RemoveAuditRule : System.IO.Pipes.PipeAuditRule -> bool
Public Function RemoveAuditRule (rule As PipeAuditRule) As Boolean

參數

rule
PipeAuditRule

取消審計規則。

傳回

true若審計規則被移除;否則,。 false

例外狀況

參數 rule 為 null。

備註

此RemoveAuditRule方法會從目前Deny物件中移除所有匹配的稽核規則或所有相符AllowPipeSecurity的稽核規則。 例如,你可以用這個方法,透過傳遞Deny一個由 FileSystemAuditRule 值、該Deny值和使用者帳號建立的物件,來移除使用者的所有Failure審計規則。 當你這麼做時,方法 RemoveAuditRule 會移除任何指定值或 Failure 值的 Success 拒絕規則。

適用於