PipeSecurity::RemoveAuditRule Method (PipeAuditRule^)
.NET Framework (current version)
Removes an audit rule from the System Access Control List (SACL) that is associated with the current PipeSecurity object.
Assembly: System.Core (in System.Core.dll)
Parameters
- rule
-
Type:
System.IO.Pipes::PipeAuditRule^
The audit rule to remove.
| Exception | Condition |
|---|---|
| ArgumentNullException | The rule parameter is null. |
The RemoveAuditRule method removes either all matching Deny audit rules or all matching Allow audit rules from the current PipeSecurity object. For example, you can use this method to remove all Deny audit rules for a user by passing a FileSystemAuditRule object created using the Deny value, the Failure value, and a user account. When you do this, the RemoveAuditRule method removes any deny rules that specify the Failure value or the Success value.
.NET Framework
Available since 3.5
Available since 3.5
Show: