Directory.GetAccessControl Method (String, AccessControlSections)
Click or drag to resize
DirectoryGetAccessControl Method (String, AccessControlSections)
Gets a DirectorySecurity object that encapsulates the specified type of access control list (ACL) entries for a particular directory.

Namespace: Alphaleonis.Win32.Filesystem
Assembly: AlphaFS (in AlphaFS.dll) Version: 2.0
Syntax
public static DirectorySecurity GetAccessControl(
	string path,
	AccessControlSections includeSections
)

Parameters

path
Type: SystemString
The path 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: DirectorySecurity
A DirectorySecurity object that encapsulates the access control rules for the directory described by the path parameter.
See Also