EventWaitHandleSecurity.SetAuditRule Method (EventWaitHandleAuditRule)

 

Removes all audit rules with the same user as the specified rule, regardless of the AuditFlags value, and then adds the specified rule.

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

public void SetAuditRule(
	EventWaitHandleAuditRule rule
)

Parameters

rule
Type: System.Security.AccessControl.EventWaitHandleAuditRule

The EventWaitHandleAuditRule to add. The user specified by this rule determines the rules to remove before this rule is added.

Exception Condition
ArgumentNullException

rule is null.

If there are no audit rules whose user matches the specified rule, rule is added.

.NET Framework
Available since 2.0
Return to top
Show: