Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

DriveInfo::DriveFormat Property

 

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

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

public:
property String^ DriveFormat {
	String^ get();
}

Property Value

Type: System::String^

The name of the file system on the specified drive.

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.

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
Show:
© 2017 Microsoft