DirectoryGetAccessControl Method (String, PathFormat) |
[AlphaFS] Gets a
DirectorySecurity object that encapsulates the access control list (ACL) entries for the specified directory.
Namespace:
Alphaleonis.Win32.Filesystem
Assembly:
AlphaFS (in AlphaFS.dll) Version: 2.0
Syntax public static DirectorySecurity GetAccessControl(
string path,
PathFormat pathFormat
)
Public Shared Function GetAccessControl (
path As String,
pathFormat As PathFormat
) As DirectorySecurity
public:
static DirectorySecurity^ GetAccessControl(
String^ path,
PathFormat pathFormat
)
static member GetAccessControl :
path : string *
pathFormat : PathFormat -> DirectorySecurity
Parameters
- path
- Type: SystemString
The path to a directory containing a DirectorySecurity object that describes the file's access control list (ACL) information. - pathFormat
- Type: Alphaleonis.Win32.FilesystemPathFormat
Indicates the format of the path parameter(s).
Return Value
Type:
DirectorySecurityA
DirectorySecurity object that encapsulates the access control rules for the file described by the
path parameter.
Exceptions See Also