System.IO.DriveInfo.ToString Method

Returns a drive name as a string.

Syntax

public override string ToString ()

Returns

The name of the drive.

Remarks

This method returns the DriveInfo.Name property.

Requirements

Namespace: System.IO
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 2.0.0.0, 4.0.0.0
Since: .NET 2.0