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::Name Property

 

Gets the name of a drive, such as C:\.

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

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

Property Value

Type: System::String^

The name of the drive.

This property is the name assigned to the drive, such as C:\ or E:\.

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