Editar

Partilhar via


EventWaitHandleSecurity.SetAuditRule(EventWaitHandleAuditRule) Method

Definition

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

public:
 void SetAuditRule(System::Security::AccessControl::EventWaitHandleAuditRule ^ rule);
public void SetAuditRule (System.Security.AccessControl.EventWaitHandleAuditRule rule);
override this.SetAuditRule : System.Security.AccessControl.EventWaitHandleAuditRule -> unit
Public Sub SetAuditRule (rule As EventWaitHandleAuditRule)

Parameters

rule
EventWaitHandleAuditRule

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

Exceptions

rule is null.

Remarks

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

Applies to