VolumeGetDiskFreeSpace Method (String, NullableBoolean) |
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,
Nullable<bool> spaceInfoType
)
Public Shared Function GetDiskFreeSpace (
drivePath As String,
spaceInfoType As Nullable(Of Boolean)
) As DiskSpaceInfo
public:
static DiskSpaceInfo^ GetDiskFreeSpace(
String^ drivePath,
Nullable<bool> spaceInfoType
)
static member GetDiskFreeSpace :
drivePath : string *
spaceInfoType : Nullable<bool> -> DiskSpaceInfo
Parameters
- drivePath
- Type: SystemString
A path to a drive. For example: "C:\", "\\server\share", or "\\?\Volume{c0580d5e-2ad6-11dc-9924-806e6f6e6963}\".
- spaceInfoType
- Type: SystemNullableBoolean
gets both size- and disk cluster information. Get only disk cluster information,
Get only size information.
Return Value
Type:
DiskSpaceInfoA class instance.
Remarks The calling application must have FILE_LIST_DIRECTORY access rights for this directory.
See Also