System.Security.AccessControl.DirectoryObjectSecurity.AddAccessRule Method

Adds the specified access rule to the Discretionary Access Control List (DACL) associated with this System.Security.AccessControl.DirectoryObjectSecurity object.

Syntax

protected void AddAccessRule (ObjectAccessRule rule)

Parameters

rule
The access rule to add.

Remarks

Adding an access rule might cause existing access rules in the DACL to be merged.

Requirements

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