System.Security.AccessControl.SemaphoreSecurity.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 (SemaphoreAccessRule rule)

Parameters

rule
The System.Security.AccessControl.SemaphoreAccessRule 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: System (in System.dll)
Assembly Versions: 2.0.0.0, 4.0.0.0
Since: .NET 2.0