Click or drag to resize

DiskSpaceInfo Class

Retrieves information about the amount of space that is available on a disk volume, which is the total amount of space, the total amount of free space, and the total amount of free space available to the user that is associated with the calling thread.

This class cannot be inherited.

Inheritance Hierarchy
SystemObject
  Alphaleonis.Win32.FilesystemDiskSpaceInfo

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

The DiskSpaceInfo type exposes the following members.

Constructors
Properties
  NameDescription
Public propertyAvailableFreeSpacePercent
Indicates the amount of available free space on a drive, formatted as percentage.
Public propertyAvailableFreeSpaceUnitSize
Indicates the amount of available free space on a drive, formatted as a unit size.
Public propertyBytesPerSector
The number of bytes per sector.
Public propertyClusterSize
Returns the Clusters size.
Public propertyDriveName
Gets the name of a drive.
Public propertyFreeBytesAvailable
The total number of free bytes on a disk that are available to the user who is associated with the calling thread.
Public propertyNumberOfFreeClusters
The total number of free clusters on the disk that are available to the user who is associated with the calling thread.
Public propertySectorsPerCluster
The number of sectors per cluster.
Public propertyTotalNumberOfBytes
The total number of bytes on a disk that are available to the user who is associated with the calling thread.
Public propertyTotalNumberOfClusters
The total number of clusters on the disk that are available to the user who is associated with the calling thread. If per-user disk quotas are in use, this value may be less than the total number of clusters on the disk.
Public propertyTotalNumberOfFreeBytes
The total number of free bytes on a disk.
Public propertyTotalSizeUnitSize
The total number of bytes on a disk that are available to the user who is associated with the calling thread, formatted as a unit size.
Public propertyUsedSpacePercent
Indicates the amount of used space on a drive, formatted as percentage.
Public propertyUsedSpaceUnitSize
Indicates the amount of used space on a drive, formatted as a unit size.
Top
Methods
  NameDescription
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 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 methodRefresh
Refreshes the state of the object.
Public methodToString
Returns the drive name.
(Overrides ObjectToString.)
Top
See Also