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.FilesystemAssembly: AlphaFS (in AlphaFS.dll) Version: 2.0
Syntax public static void SetAccessControl(
string path,
FileSecurity fileSecurity,
AccessControlSections includeSections,
PathFormat pathFormat
)
Public Shared Sub SetAccessControl (
path As String,
fileSecurity As FileSecurity,
includeSections As AccessControlSections,
pathFormat As PathFormat
)
public:
static void SetAccessControl(
String^ path,
FileSecurity^ fileSecurity,
AccessControlSections includeSections,
PathFormat pathFormat
)
static member SetAccessControl :
path : string *
fileSecurity : FileSecurity *
includeSections : AccessControlSections *
pathFormat : PathFormat -> unit
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).
See Also