DirectorySetAccessControl Method (SafeFileHandle, DirectorySecurity, AccessControlSections) |
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.2
Syntax public static void SetAccessControl(
SafeFileHandle handle,
DirectorySecurity directorySecurity,
AccessControlSections includeSections
)
Public Shared Sub SetAccessControl (
handle As SafeFileHandle,
directorySecurity As DirectorySecurity,
includeSections As AccessControlSections
)
public:
static void SetAccessControl(
SafeFileHandle^ handle,
DirectorySecurity^ directorySecurity,
AccessControlSections includeSections
)
static member SetAccessControl :
handle : SafeFileHandle *
directorySecurity : DirectorySecurity *
includeSections : AccessControlSections -> unit
Parameters
- handle
- Type: Microsoft.Win32.SafeHandlesSafeFileHandle
A SafeFileHandle to a file 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.
See Also