Click or drag to resize
DriveInfo Class
Provides access to information on a local or remote drive.
Inheritance Hierarchy
SystemObject
  Alphaleonis.Win32.FilesystemDriveInfo

Namespace: Alphaleonis.Win32.Filesystem
Assembly: AlphaFS (in AlphaFS.dll) Version: 2.0
Syntax
[SerializableAttribute]
public sealed class DriveInfo

The DriveInfo type exposes the following members.

Constructors
  NameDescription
Public methodDriveInfo
Provides access to information on the specified drive.
Top
Methods
  NameDescription
Public methodStatic memberEnumerateDrives
[AlphaFS] Enumerates the drive names of all logical drives on a computer.
Public methodEquals
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodStatic memberGetDrives
Retrieves the drive names of all logical drives on a computer.
Public methodStatic memberGetFreeDriveLetter
[AlphaFS] Gets the first available drive letter on the local system.
Public methodStatic memberGetFreeDriveLetter(Boolean)
Gets an available drive letter on the local system.
Public methodGetHashCode
Serves as a hash function for a particular type.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodToString
Returns a drive name as a string.
(Overrides ObjectToString.)
Top
Properties
  NameDescription
Public propertyAvailableFreeSpace
Indicates the amount of available free space on a drive.
Public propertyDiskSpaceInfo
[AlphaFS] Returns the instance.
Public propertyDosDeviceName
[AlphaFS] The MS-DOS device name.
Public propertyDriveFormat
Gets the name of the file system, such as NTFS or FAT32.
Public propertyDriveType
Gets the drive type.
Public propertyIsDosDeviceSubstitute
[AlphaFS] Indicates if this drive is a SUBST.EXE / DefineDosDevice drive mapping.
Public propertyIsReady
Gets a value indicating whether a drive is ready.
Public propertyIsUnc
[AlphaFS] Indicates if this drive is a UNC path.
Public propertyIsVolume
[AlphaFS] Determines whether the specified volume name is a defined volume on the current computer.
Public propertyName
Gets the name of the drive.
Public propertyRootDirectory
Gets the root directory of a drive.
Public propertyTotalFreeSpace
Gets the total amount of free space available on a drive.
Public propertyTotalSize
Gets the total size of storage space on a drive.
Public propertyVolumeInfo
[AlphaFS] Contains information about a file-system volume.
Public propertyVolumeLabel
Gets or sets the volume label of a drive.
Top
Remarks
This class models a drive and provides methods and properties to query for drive information. Use 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.
See Also