DirectoryGetAccessControl Method (SafeFileHandle, AccessControlSections) |
[AlphaFS] Gets a
DirectorySecurity object that encapsulates the specified type of access control list (ACL) entries for a particular directory handle.
Namespace:
Alphaleonis.Win32.Filesystem
Assembly:
AlphaFS (in AlphaFS.dll) Version: 2.0
Syntax public static DirectorySecurity GetAccessControl(
SafeFileHandle handle,
AccessControlSections includeSections
)
Public Shared Function GetAccessControl (
handle As SafeFileHandle,
includeSections As AccessControlSections
) As DirectorySecurity
public:
static DirectorySecurity^ GetAccessControl(
SafeFileHandle^ handle,
AccessControlSections includeSections
)
static member GetAccessControl :
handle : SafeFileHandle *
includeSections : AccessControlSections -> DirectorySecurity
Parameters
- handle
- Type: Microsoft.Win32.SafeHandlesSafeFileHandle
A SafeHandle to a directory containing a DirectorySecurity object that describes the directory's access control list (ACL) information. - includeSections
- Type: System.Security.AccessControlAccessControlSections
One (or more) of the AccessControlSections values that specifies the type of access control list (ACL) information to receive.
Return Value
Type:
DirectorySecurityA
DirectorySecurity object that encapsulates the access control rules for the directory described by the
handle parameter.
Exceptions See Also