Click or drag to resize
FileInfoSetAccessControl Method (FileSecurity, AccessControlSections)
Applies access control list (ACL) entries described by a FileSecurity object to the file described by the current FileInfo object.

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


Type: System.Security.AccessControlFileSecurity
A FileSecurity object that describes an access control list (ACL) entry to apply to the current file.
Type: System.Security.AccessControlAccessControlSections
One or more of the AccessControlSections values that specifies the type of access control list (ACL) information to set.
The SetAccessControl method applies access control list (ACL) entries to the current file that represents the noninherited ACL list. Use the SetAccessControl method whenever you need to add or remove ACL entries from a file.
See Also