Редагувати

Поділитися через


SemaphoreSecurity.RemoveAuditRuleAll(SemaphoreAuditRule) Method

Definition

Searches for all audit rules with the same user as the specified rule and, if found, removes them.

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

Parameters

rule
SemaphoreAuditRule

A SemaphoreAuditRule that specifies the user to search for. Any rights specified by this rule are ignored.

Exceptions

rule is null.

Remarks

The current SemaphoreSecurity is searched for audit rules that have the same user as rule. Any rights specified by rule are ignored when performing this search. All matching rules are removed. If no matching rules are found, no action is taken.

Applies to