System.IO.DriveInfo Class

Provides access to information on a drive.

See Also: DriveInfo Members

Syntax

[System.Runtime.InteropServices.ComVisible(true)]
public sealed class DriveInfo : System.Runtime.Serialization.ISerializable

Remarks

This class models a drive and provides methods and properties to query for drive information. Use System.IO.DriveInfo to determine what drives are available, and what type of drives they are. You can also query to determine the capacity and available free space on the drive.

Requirements

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