FileGetAccessControl Method (String, PathFormat) |
[AlphaFS] Gets a
FileSecurity object that encapsulates the access control
list (ACL) entries for a specified file.
Namespace: Alphaleonis.Win32.FilesystemAssembly: AlphaFS (in AlphaFS.dll) Version: 2.0
Syntax public static FileSecurity GetAccessControl(
string path,
PathFormat pathFormat
)
Public Shared Function GetAccessControl (
path As String,
pathFormat As PathFormat
) As FileSecurity
public:
static FileSecurity^ GetAccessControl(
String^ path,
PathFormat pathFormat
)
static member GetAccessControl :
path : string *
pathFormat : PathFormat -> FileSecurity
Parameters
- path
- Type: SystemString
The path to a file containing a FileSecurity 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:
FileSecurity
A
FileSecurity object that encapsulates the access control rules for the file
described by the
path parameter.
See Also