SystemAcl.RemoveAudit Method (AuditFlags, SecurityIdentifier, Int32, InheritanceFlags, PropagationFlags)

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Removes the specified audit rule from the current SystemAcl object.

Namespace:   System.Security.AccessControl
Assembly:  mscorlib (in mscorlib.dll)

public bool RemoveAudit(
	AuditFlags auditFlags,
	SecurityIdentifier sid,
	int accessMask,
	InheritanceFlags inheritanceFlags,
	PropagationFlags propagationFlags
)

Parameters

auditFlags
Type: System.Security.AccessControl.AuditFlags

The type of audit rule to remove.

sid
Type: System.Security.Principal.SecurityIdentifier

The SecurityIdentifier for which to remove an audit rule.

accessMask
Type: System.Int32

The access mask for the rule to be removed.

inheritanceFlags
Type: System.Security.AccessControl.InheritanceFlags

Flags that specify the inheritance properties of the rule to be removed.

propagationFlags
Type: System.Security.AccessControl.PropagationFlags

Flags that specify the inheritance propagation properties for the rule to be removed.

Return Value

Type: System.Boolean

true if this method successfully removes the specified audit rule; otherwise, false.

Audit removal is accomplished by using a complex algorithm that might add ACEs in addition to removing them.

.NET Framework
Available since 2.0
Return to top
Show: