System.IO.DriveInfo Members

The members of System.IO.DriveInfo are listed below.

See Also: Inherited members from System.Object

Public Constructors

Provides access to information on the specified drive.

Public Properties

[read-only]
AvailableFreeSpacelong.

Indicates the amount of available free space on a drive, in bytes.

[read-only]
DriveFormatstring.

Gets the name of the file system, such as NTFS or FAT32.

[read-only]
DriveTypeDriveType.

Gets the drive type, such as CD-ROM, removable, network, or fixed.

[read-only]
IsReadybool.

Gets a value that indicates whether a drive is ready.

[read-only]
Namestring.

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

[read-only]
RootDirectoryDirectoryInfo.

Gets the root directory of a drive.

[read-only]
TotalFreeSpacelong.

Gets the total amount of free space available on a drive, in bytes.

[read-only]
TotalSizelong.

Gets the total size of storage space on a drive, in bytes.

VolumeLabelstring.

Gets or sets the volume label of a drive.

Public Methods

static
GetDrives() : DriveInfo[]

Retrieves the drive names of all logical drives on a computer.

override
ToString() : string

Returns a drive name as a string.

Explicitly Implemented Interface Members

System.Runtime.Serialization.ISerializable.GetObjectData

Populates a System.Runtime.Serialization.SerializationInfo object with the data needed to serialize the target object.