DirectoryInfoGetAccessControl Method (AccessControlSections) |
Gets a
DirectorySecurity object that encapsulates the specified type of access control list (ACL) entries for the directory described by the current
DirectoryInfo object.
Namespace:
Alphaleonis.Win32.Filesystem
Assembly:
AlphaFS (in AlphaFS.dll) Version: 2.2
Syntax public DirectorySecurity GetAccessControl(
AccessControlSections includeSections
)
Public Function GetAccessControl (
includeSections As AccessControlSections
) As DirectorySecurity
public:
DirectorySecurity^ GetAccessControl(
AccessControlSections includeSections
)
member GetAccessControl :
includeSections : AccessControlSections -> DirectorySecurity
Parameters
- includeSections
- Type: System.Security.AccessControlAccessControlSections
One 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 file described by the path parameter.
See Also