Click or drag to resize

FileSetAccessControl Method (String, FileSecurity, PathFormat)

[AlphaFS] Applies access control list (ACL) entries described by a FileSecurity FileSecurity object to the specified file.

Namespace:  Alphaleonis.Win32.Filesystem
Assembly:  AlphaFS (in AlphaFS.dll) Version: 2.2
Syntax
public static void SetAccessControl(
	string path,
	FileSecurity fileSecurity,
	PathFormat pathFormat
)

Parameters

path
Type: SystemString
A file 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 file described by the path parameter.
pathFormat
Type: Alphaleonis.Win32.FilesystemPathFormat
Indicates the format of the path parameter(s).
Exceptions
See Also