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.

EventWaitHandleSecurity::RemoveAuditRuleSpecific Method (EventWaitHandleAuditRule^)

 

Searches for an audit rule that exactly matches the specified rule and, if found, removes it.

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

public:
void RemoveAuditRuleSpecific(
	EventWaitHandleAuditRule^ rule
)

Exception Condition
ArgumentNullException

rule is null.

The rule is removed only if it exactly matches rule in all details, including flags. Other audit rules for the same user are not affected.

System_CAPS_importantImportant

A rule represents one or more underlying access control entries (ACE), and these entries are split or combined as necessary when you modify the audit security rules for a user. Thus, a rule might no longer exist in the specific form it had when it was added, and in that case the RemoveAuditRuleSpecific method cannot remove it.

.NET Framework
Available since 2.0
Return to top
Show:
© 2017 Microsoft