DriveInfo Members
Collapse the table of content
Expand the table of content

DriveInfo Members

Provides access to information on a drive.

The DriveInfo type exposes the following members.

Public method DriveInfo Provides access to information on the specified drive.

Public method Equals Determines whether the specified Object is equal to the current Object. (Inherited from Object.)
Protected method Finalize Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public method Static member GetDrives Retrieves the drive names of all logical drives on a computer.
Public method GetHashCode Serves as a hash function for a particular type. (Inherited from Object.)
Public method GetType Gets the type of the current instance. (Inherited from Object.)
Protected method MemberwiseClone Creates a shallow copy of the current Object. (Inherited from Object.)
Public method ToString Returns a drive name as a string. (Overrides Object.ToString().)

Public property AvailableFreeSpace Indicates the amount of available free space on a drive.
Public property DriveFormat Gets the name of the file system, such as NTFS or FAT32.
Public property DriveType Gets the drive type.
Public property IsReady Gets a value indicating whether a drive is ready.
Public property Name Gets the name of a drive.
Public property RootDirectory Gets the root directory of a drive.
Public property TotalFreeSpace Gets the total amount of free space available on a drive.
Public property TotalSize Gets the total size of storage space on a drive.
Public property VolumeLabel Gets or sets the volume label of a drive.

Explicit interface implemetation Private method ISerializable.GetObjectData Populates a SerializationInfo object with the data needed to serialize the target object.

Community Additions

© 2016 Microsoft