This documentation is archived and is not being maintained.
Provides access to information on a drive.
The following tables list the members exposed by the DriveInfo type.
|AvailableFreeSpace||Indicates the amount of available free space on a drive.|
|DriveFormat||Gets the name of the file system, such as NTFS or FAT32.|
|DriveType||Gets the drive type.|
|IsReady||Gets a value indicating whether a drive is ready.|
|Name||Gets the name of a drive.|
|RootDirectory||Gets the root directory of a drive.|
|TotalFreeSpace||Gets the total amount of free space available on a drive.|
|TotalSize||Gets the total size of storage space on a drive.|
|VolumeLabel||Gets or sets the volume label of a drive.|
|Equals||Overloaded. Determines whether two Object instances are equal. (Inherited from Object.)|
|GetDrives||Retrieves the drive names of all logical drives on a computer.|
|GetHashCode||Serves as a hash function for a particular type. GetHashCode is suitable for use in hashing algorithms and data structures like a hash table. (Inherited from Object.)|
|GetType||Gets the Type of the current instance. (Inherited from Object.)|
|ReferenceEquals||Determines whether the specified Object instances are the same instance. (Inherited from Object.)|
|ToString||Overridden. Returns a drive name as a string.|
|System.Runtime.Serialization.ISerializable.GetObjectData||Populates a SerializationInfo object with the data needed to serialize the target object.|