DriveInfo.ToString Method ()

 
System_CAPS_noteNote

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

Returns a drive name as a string.

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

public override string ToString()

Return Value

Type: System.String

The name of the drive.

This method returns the Name property.

.NET Framework
Available since 2.0
Return to top
Show: