DriveInfo.DriveFormat Property


The .NET API Reference documentation has a new home. Visit the .NET API Browser on to see the new experience.

Gets the name of the file system, such as NTFS or FAT32.

Namespace:   System.IO
Assembly:  mscorlib (in mscorlib.dll)

member DriveFormat : string with get

Property Value

Type: System.String

The name of the file system on the specified drive.

Exception Condition

Access to the drive information is denied.


The drive does not exist or is not mapped.


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.

The following code example demonstrates the use of the DriveInfo class to display information about all of the drives on the current system.

No code example is currently available or this language may not be supported.

.NET Framework
Available since 2.0
Return to top