Share via


PipeSecurity.RemoveAuditRule(PipeAuditRule) メソッド

定義

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

適用対象