|DirectorySetAccessControl Method (String, DirectorySecurity, AccessControlSections)|
Applies access control list (ACL) entries described by a DirectorySecurity
object to the specified directory.
AlphaFS (in AlphaFS.dll) Version: 2.0
public static void SetAccessControl(
Public Shared Sub SetAccessControl (
path As String,
directorySecurity As DirectorySecurity,
includeSections As AccessControlSections
static void SetAccessControl(
static member SetAccessControl :
path : string *
directorySecurity : DirectorySecurity *
includeSections : AccessControlSections -> unit
- Type: SystemString
A directory to add or remove access control list (ACL) entries from.
- Type: System.Security.AccessControlDirectorySecurity
A DirectorySecurity object that describes an ACL entry to apply to the directory described by the path parameter.
- Type: System.Security.AccessControlAccessControlSections
One or more of the AccessControlSections values that specifies the type of access control list (ACL) information to set.
Note that unlike SetAccessControl(String, FileSecurity)
this method does not
determine what parts of the specified DirectorySecurity
instance has been modified. Instead, the
is used to specify what entries from directorySecurity
to apply to path