Click or drag to resize

FileGetAccessControl Method (SafeFileHandle, AccessControlSections)

[AlphaFS] Gets a FileSecurity object that encapsulates the access control list (ACL) entries for a specified file handle.

Namespace:  Alphaleonis.Win32.Filesystem
Assembly:  AlphaFS (in AlphaFS.dll) Version: 2.0
public static FileSecurity GetAccessControl(
	SafeFileHandle handle,
	AccessControlSections includeSections


Type: Microsoft.Win32.SafeHandlesSafeFileHandle
A SafeHandle to a file containing a FileSecurity object that describes the file's access control list (ACL) information.
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: FileSecurity
A FileSecurity object that encapsulates the access control rules for the file described by the handle parameter.
See Also