VolumeGetDiskFreeSpace Method (String) |
Retrieves information about the amount of space that is available on a disk volume, which is the total amount of space, the total
amount of free space, and the total amount of free space available to the user that is associated with the calling thread.
Namespace:
Alphaleonis.Win32.Filesystem
Assembly:
AlphaFS (in AlphaFS.dll) Version: 2.0
Syntax public static DiskSpaceInfo GetDiskFreeSpace(
string drivePath
)
Public Shared Function GetDiskFreeSpace (
drivePath As String
) As DiskSpaceInfo
public:
static DiskSpaceInfo^ GetDiskFreeSpace(
String^ drivePath
)
static member GetDiskFreeSpace :
drivePath : string -> DiskSpaceInfo
Parameters
- drivePath
- Type: SystemString
A path to a drive. For example: "C:\", "\\server\share", or "\\?\Volume{c0580d5e-2ad6-11dc-9924-806e6f6e6963}\".
Return Value
Type:
DiskSpaceInfoA class instance.
Remarks The calling application must have FILE_LIST_DIRECTORY access rights for this directory.
See Also