Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

DirectoryInfo::GetAccessControl Method

 

Gets the access control list (ACL) entries for the current directory.

Namespace:   System.IO
Assembly:  mscorlib (in mscorlib.dll)

NameDescription
System_CAPS_pubmethodGetAccessControl()

Gets a DirectorySecurity object that encapsulates the access control list (ACL) entries for the directory described by the current DirectoryInfo object.

System_CAPS_pubmethodGetAccessControl(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.

Return to top
Show:
© 2017 Microsoft