DriveInfo

DriveInfo


Provides methods to access information about a drive.


Implements:

IObject 

Public:

Properties:

NameDescription
 AvailableFreeSpace (get) Returns the amount of free space is available allowed for the current account use.  
 DriveFormat (get) Returns the drive format (NTFS, FAT32, ...)  
 DriveType (get) Returns the type of drive this instance represents.  
 IsReady (get) Returns if the drive is ready to be accessed.  
 Name (get) Returns the name of the drive.  
 RootDirectory (get) Returns a DirectoryInfo of the root directory for the drive.  
 SerialNumber (get) Returns the serial number for the drive.  
 TotalFreeSpace (get) Returns the amount of free space on the drive.  
 TotalSize (get) Returns the amount of storage the drive media is capable of holding.  
 VolumeLabel (get) Returns the volume name.  
 VolumeLabel (let) Sets the volume name.  

Methods:

NameDescription
 Equals Returns a boolean indicating if the value and this object instance are the same instance.  
 GetHashCode Returns a pseudo-unique number identifying this instance.  
 ToString Returns a string representation of this object instance.  

Remarks

A constructor is used to create a new DriveInfo.

 Set info = NewDriveInfo("c:\")
 

See Also

Project CorLib Overview

Class DriveInfo Overview

DriveInfoStatic

Constructors

FileInfo

DirectoryInfo