Shell32GetFileInfo Method |
Retrieves information about an object in the file system, such as a file, folder, directory, or drive root.
Namespace:
Alphaleonis.Win32.Filesystem
Assembly:
AlphaFS (in AlphaFS.dll) Version: 2.2
Syntax public static Shell32FileInfo GetFileInfo(
string filePath,
FileAttributes attributes,
Shell32FileAttributes fileAttributes,
bool continueOnException
)
Public Shared Function GetFileInfo (
filePath As String,
attributes As FileAttributes,
fileAttributes As Shell32FileAttributes,
continueOnException As Boolean
) As Shell32FileInfo
public:
static Shell32FileInfo GetFileInfo(
String^ filePath,
FileAttributes attributes,
Shell32FileAttributes fileAttributes,
bool continueOnException
)
static member GetFileInfo :
filePath : string *
attributes : FileAttributes *
fileAttributes : Shell32FileAttributes *
continueOnException : bool -> Shell32FileInfo
Parameters
- filePath
- Type: SystemString
The path to the file system object which should not exceed the maximum path length. Both absolute and relative paths are valid. - attributes
- Type: System.IOFileAttributes
A FileAttributes attribute. - fileAttributes
- Type: Alphaleonis.Win32.FilesystemShell32FileAttributes
One ore more Shell32FileAttributes attributes. - continueOnException
- Type: SystemBoolean
suppress any Exception that might be thrown as a result from a failure,
such as ACLs protected directories or non-accessible reparse points.
Return Value
Type:
Shell32FileInfoA
Shell32FileInfo struct instance.
Remarks You should call this function from a background thread.
Failure to do so could cause the UI to stop responding.
Unicode path are supported.
See Also