Click or drag to resize

FileSetAccessControl Method (String, FileSecurity, AccessControlSections, PathFormat)

[AlphaFS] 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,
	PathFormat pathFormat
)

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