FileInfo.SetAccessControl Method (FileSecurity)
Click or drag to resize
FileInfoSetAccessControl Method (FileSecurity)
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
Syntax
public void SetAccessControl(
	FileSecurity fileSecurity
)

Parameters

fileSecurity
Type: System.Security.AccessControlFileSecurity
A FileSecurity object that describes an access control list (ACL) entry to apply to the current file.
Remarks
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