DirectoryInfo::GetAccessControl Method
Gets the access control list (ACL) entries for the current directory.
Assembly: mscorlib (in mscorlib.dll)
| Name | Description | |
|---|---|---|
![]() | GetAccessControl() | Gets a DirectorySecurity object that encapsulates the access control list (ACL) entries for the directory described by the current DirectoryInfo object. |
![]() | GetAccessControl(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. |
Use GetAccessControl methods to retrieve the access control list (ACL) entries for the current file.
For more information, see How to: Add or Remove Access Control List Entries.
