DriveInfo::DriveFormat Property
.NET Framework (current version)
Gets the name of the file system, such as NTFS or FAT32.
Assembly: mscorlib (in mscorlib.dll)
| Exception | Condition |
|---|---|
| UnauthorizedAccessException | Access to the drive information is denied. |
| DriveNotFoundException | The drive does not exist or is not mapped. |
| IOException | An I/O error occurred (for example, a disk error or a drive was not ready). |
Use DriveFormat to determine what formatting a drive uses.
.NET Framework
Available since 2.0
Available since 2.0
Show: