DirectorySetAccessControl Method (String, DirectorySecurity, 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,
DirectorySecurity directorySecurity,
AccessControlSections includeSections,
PathFormat pathFormat
)
Public Shared Sub SetAccessControl (
path As String,
directorySecurity As DirectorySecurity,
includeSections As AccessControlSections,
pathFormat As PathFormat
)
public:
static void SetAccessControl(
String^ path,
DirectorySecurity^ directorySecurity,
AccessControlSections includeSections,
PathFormat pathFormat
)
static member SetAccessControl :
path : string *
directorySecurity : DirectorySecurity *
includeSections : AccessControlSections *
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. - 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).
Remarks Note that unlike
SetAccessControl(String, FileSecurity) this method does
not automatically
determine what parts of the specified
DirectorySecurity instance has been modified. Instead, the
parameter
includeSections is used to specify what entries from
directorySecurity to apply to
path.
See Also