System.Security.AccessControl.DiscretionaryAcl.AddAccess Method

Adds an Access Control Entry (ACE) with the specified settings to the current System.Security.AccessControl.DiscretionaryAcl object.

Syntax

public void AddAccess (AccessControlType accessType, System.Security.Principal.SecurityIdentifier sid, int accessMask, InheritanceFlags inheritanceFlags, PropagationFlags propagationFlags)

Parameters

accessType
The type of access control (allow or deny) to add.
sid
The System.Security.Principal.SecurityIdentifier for which to add an ACE.
accessMask
The access rule for the new ACE.
inheritanceFlags
Flags that specify the inheritance properties of the new ACE.
propagationFlags
Flags that specify the inheritance propagation properties for the new ACE.

Remarks

This method can cause existing ACEs 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