Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

MutexSecurity::SetAuditRule Method (MutexAuditRule^)

 

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(
	MutexAuditRule^ rule
)

Parameters

rule
Type: System.Security.AccessControl::MutexAuditRule^

The MutexAuditRule 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:
© 2017 Microsoft