DirectorySetAccessControl Method (String, DirectorySecurity, 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,
DirectorySecurity directorySecurity,
PathFormat pathFormat
)
Public Shared Sub SetAccessControl (
path As String,
directorySecurity As DirectorySecurity,
pathFormat As PathFormat
)
public:
static void SetAccessControl(
String^ path,
DirectorySecurity^ directorySecurity,
PathFormat pathFormat
)
static member SetAccessControl :
path : string *
directorySecurity : DirectorySecurity *
pathFormat : PathFormat -> unit
Parameters
- path
- Type: SystemString
A directory to add or remove access control list (ACL) entries from. - directorySecurity
- Type: System.Security.AccessControlDirectorySecurity
A DirectorySecurity object that describes an ACL entry to apply to the directory described by the path parameter. - pathFormat
- Type: Alphaleonis.Win32.FilesystemPathFormat
Indicates the format of the path parameter(s).
See Also