Language

PipeSecurity.RemoveAuditRule(PipeAuditRule) メソッド

定義

現在の PipeSecurity オブジェクトに関連付けられているシステム Access Control リスト (SACL) から監査規則を削除します。

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監査規則、または一致するすべてのAllow監査規則を現在のPipeSecurity オブジェクトから削除します。 たとえば、このメソッドを使用すると、Deny値、FileSystemAuditRule値、およびユーザー アカウントを使用して作成されたDeny オブジェクトを渡すことによって、ユーザーのすべてのFailure監査規則を削除できます。 これを行うと、 RemoveAuditRule メソッドは、 Failure 値または Success 値を指定する拒否規則をすべて削除します。

適用対象