Shell32GetFileInfo Method |
Unified method GetFileInfoInternal() to retrieve information about an object in the file system,
Namespace: Alphaleonis.Win32.FilesystemAssembly: AlphaFS (in AlphaFS.dll) Version: 2.0
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 a result from a failure,
such as ACLs protected directories or non-accessible reparse points.
Return Value
Type:
Shell32FileInfoReturns a
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