File.SetAccessControl Method (String, FileSecurity, AccessControlSections)
Click or drag to resize
FileSetAccessControl Method (String, FileSecurity, AccessControlSections)
Applies access control list (ACL) entries described by a DirectorySecurity object to the specified directory.

Namespace: Alphaleonis.Win32.Filesystem
Assembly: AlphaFS (in AlphaFS.dll) Version: 2.0
Syntax
public static void SetAccessControl(
	string path,
	FileSecurity fileSecurity,
	AccessControlSections includeSections
)

Parameters

path
Type: SystemString
A directory to add or remove access control list (ACL) entries from.
fileSecurity
Type: System.Security.AccessControlFileSecurity
A FileSecurity object that describes an ACL entry to apply to the directory described by the path parameter.
includeSections
Type: System.Security.AccessControlAccessControlSections
One or more of the AccessControlSections values that specifies the type of access control list (ACL) information to set.
See Also