DriveInfo::AvailableFreeSpace Property
.NET Framework (current version)
Indicates the amount of available free space on a drive, in bytes.
Assembly: mscorlib (in mscorlib.dll)
| Exception | Condition |
|---|---|
| UnauthorizedAccessException | Access to the drive information is denied. |
| IOException | An I/O error occurred (for example, a disk error or a drive was not ready). |
This property indicates the amount of free space available on the drive. Note that this number may be different from the TotalFreeSpace number because this property takes into account disk quotas.
.NET Framework
Available since 2.0
Available since 2.0
Show: