RegistrySecurity.RemoveAuditRuleAll(RegistryAuditRule) RegistrySecurity.RemoveAuditRuleAll(RegistryAuditRule) RegistrySecurity.RemoveAuditRuleAll(RegistryAuditRule) 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::RegistryAuditRule ^ rule);
public void RemoveAuditRuleAll (System.Security.AccessControl.RegistryAuditRule rule);
Public Sub RemoveAuditRuleAll (rule As RegistryAuditRule)
Parameters
rule
RegistryAuditRule RegistryAuditRule RegistryAuditRule

A RegistryAuditRule that specifies the user to search for. Any rights, inheritance flags, or propagation flags specified by this rule are ignored.

Exceptions

Remarks

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

Applies to