System.Security.AccessControl.MutexSecurity.ResetAccessRule Method

Removes all access control rules with the same user as the specified rule, regardless of System.Security.AccessControl.AccessControlType, and then adds the specified rule.

Syntax

public void ResetAccessRule (MutexAccessRule rule)

Parameters

rule
The System.Security.AccessControl.MutexAccessRule to add. The user specified by this rule determines the rules to remove before this rule is added.

Remarks

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

Requirements

Namespace: System.Security.AccessControl
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 2.0.0.0, 4.0.0.0
Since: .NET 2.0